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:10:42 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
069599e4f354bc393f223b1521ddc58f2b4003f6
069599e4
1 parent
e00b75ba
no message
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
cli_main.py
conf.py
utils/base_social_media.py
cli_main.py
View file @
069599e
...
...
@@ -11,7 +11,7 @@ from uploader.tencent_uploader.main import weixin_setup, TencentVideo
from
uploader.tk_uploader.main_chrome
import
tiktok_setup
,
TiktokVideo
from
uploader.wyh_uploader.main
import
wyh_setup
from
utils.base_social_media
import
get_supported_social_media
,
get_cli_action
,
SOCIAL_MEDIA_DOUYIN
,
\
SOCIAL_MEDIA_TENCENT
,
SOCIAL_MEDIA_TIKTOK
,
SOCIAL_MEDIA_KUAISHOU
,
SOCIAL_MEDIA_WANGYIHAO
SOCIAL_MEDIA_TENCENT
,
SOCIAL_MEDIA_TIKTOK
,
SOCIAL_MEDIA_KUAISHOU
,
SOCIAL_MEDIA_WANGYIHAO
,
SOCIAL_MEDIA_XHS
from
utils.constant
import
TencentZoneTypes
from
utils.files_times
import
get_title_and_hashtags
...
...
@@ -71,6 +71,8 @@ async def main():
await
ks_setup
(
str
(
account_file
),
handle
=
True
)
elif
args
.
platform
==
SOCIAL_MEDIA_WANGYIHAO
:
await
wyh_setup
(
str
(
account_file
),
handle
=
True
)
# elif args.platform == SOCIAL_MEDIA_XHS:
# await xhs_setup(str(account_file), handle=True)
elif
args
.
action
==
'upload'
:
title
,
tags
=
get_title_and_hashtags
(
args
.
video_file
)
...
...
conf.py
View file @
069599e
from
pathlib
import
Path
BASE_DIR
=
Path
(
__file__
)
.
parent
.
resolve
()
XHS_SERVER
=
"http://127.0.0.1:
11901
"
XHS_SERVER
=
"http://127.0.0.1:
5005
"
LOCAL_CHROME_PATH
=
""
# change me necessary! for example C:/Program Files/Google/Chrome/Application/chrome.exe
...
...
utils/base_social_media.py
View file @
069599e
...
...
@@ -9,6 +9,7 @@ SOCIAL_MEDIA_TIKTOK = "tiktok"
SOCIAL_MEDIA_BILIBILI
=
"bilibili"
SOCIAL_MEDIA_KUAISHOU
=
"kuaishou"
SOCIAL_MEDIA_WANGYIHAO
=
'wangyihao'
SOCIAL_MEDIA_XHS
=
'xiaohongshu'
def
get_supported_social_media
()
->
List
[
str
]:
...
...
Please
register
or
login
to post a comment