Toggle navigation
Toggle navigation
This project
Loading...
Sign in
LiuFuhua
/
xj-marketing
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
zoujie
2024-12-23 22:57:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c1d73f6087418c7a15f039d323296b4b755659a7
c1d73f60
1 parent
5f83284c
no message
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
uploader/ks_uploader/main.py
uploader/ks_uploader/main.py
View file @
c1d73f6
...
...
@@ -56,8 +56,11 @@ async def get_ks_cookie(account_file):
# Pause the page, and start recording manually.
page
=
await
context
.
new_page
()
await
page
.
goto
(
"https://cp.kuaishou.com"
)
await
page
.
wait_for_url
(
"https://cp.kuaishou.com/profile"
)
await
asyncio
.
sleep
(
1
)
await
page
.
wait_for_selector
(
".publish-button"
,
timeout
=
50000
)
print
(
"快手登录成功"
)
await
asyncio
.
sleep
(
3
)
# await page.pause()
# 点击调试器的继续,保存cookie
await
context
.
storage_state
(
path
=
account_file
)
...
...
Please
register
or
login
to post a comment