Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python_open_ai
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
python_open_ai
Commits
1f28883d
Commit
1f28883d
authored
Apr 14, 2023
by
lei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1be0b88e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
Helper.py
+4
-4
test.py
+3
-1
No files found.
Helper.py
View file @
1f28883d
...
...
@@ -18,8 +18,8 @@ class RedisConnSingleton(object):
:param kwargs:
"""
if
cls
.
_instance
is
None
:
cls
.
_instance
=
redis
.
ConnectionPool
(
max_connections
=
1000
,
host
=
'4
2.194.143.229
'
,
port
=
6379
,
db
=
0
,
password
=
'
a123456,a
'
)
cls
.
_instance
=
redis
.
ConnectionPool
(
max_connections
=
1000
,
host
=
'4
5.207.61.22
'
,
port
=
6379
,
db
=
0
,
password
=
'
Aa123456.
'
)
return
cls
.
_instance
...
...
@@ -34,8 +34,8 @@ class RedisConnectionPoolSingleton(object):
:param kwargs:
"""
if
cls
.
_instance
is
None
:
cls
.
_instance
=
ConnectionPool
(
max_connections
=
1000
,
host
=
'4
2.194.143.229
'
,
port
=
6379
,
db
=
0
,
password
=
'
a123456,a
'
)
cls
.
_instance
=
ConnectionPool
(
max_connections
=
1000
,
host
=
'4
5.207.61.22
'
,
port
=
6379
,
db
=
0
,
password
=
'
Aa123456.
'
)
return
cls
.
_instance
...
...
test.py
View file @
1f28883d
...
...
@@ -70,7 +70,7 @@ async def main():
page
=
cur_pages
[
0
]
await
page
.
goto
(
'https://discord.com/channels/@me'
)
await
login
(
page
)
time
.
sleep
(
20
)
await
asyncio
.
sleep
(
20
)
# 测试文字
test_title
=
'你好你好你好222'
# 插入文本
...
...
@@ -83,6 +83,8 @@ async def main():
bubbles: true, cancelable: true, keyCode: 49
});
document.body.dispatchEvent(ke);
console.log('--------通过---------------------------')
}'''
,
element
,
test_title
)
logger
.
info
(
'成功'
)
# 回车
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment