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 16:09:47 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e00b75bae5485879e207aea1c8075e636e17d599
e00b75ba
1 parent
e380705e
no message
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
uploader/douyin_uploader/main.py
uploader/ks_uploader/main.py
uploader/tencent_uploader/main.py
uploader/douyin_uploader/main.py
View file @
e00b75b
...
...
@@ -59,6 +59,8 @@ async def douyin_cookie_gen(account_file):
page
=
await
context
.
new_page
()
await
page
.
goto
(
"https://creator.douyin.com/"
)
await
page
.
wait_for_url
(
"https://creator.douyin.com/creator-micro/home"
)
await
asyncio
.
sleep
(
1
)
# page.pause()
# await page.pause()
# 点击调试器的继续,保存cookie
await
context
.
storage_state
(
path
=
account_file
)
...
...
uploader/ks_uploader/main.py
View file @
e00b75b
...
...
@@ -56,7 +56,9 @@ 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
.
pause
()
await
page
.
wait_for_url
(
"https://cp.kuaishou.com/profile"
)
await
asyncio
.
sleep
(
1
)
# await page.pause()
# 点击调试器的继续,保存cookie
await
context
.
storage_state
(
path
=
account_file
)
...
...
uploader/tencent_uploader/main.py
View file @
e00b75b
...
...
@@ -65,7 +65,9 @@ async def get_tencent_cookie(account_file):
context
=
await
set_init_script
(
context
)
page
=
await
context
.
new_page
()
await
page
.
goto
(
"https://channels.weixin.qq.com"
)
await
page
.
pause
()
# await page.pause()
await
page
.
wait_for_url
(
"https://channels.weixin.qq.com/platform"
)
await
asyncio
.
sleep
(
1
)
# 点击调试器的继续,保存cookie
await
context
.
storage_state
(
path
=
account_file
)
...
...
Please
register
or
login
to post a comment