Showing
3 changed files
with
5 additions
and
2 deletions
| ... | @@ -11,7 +11,7 @@ from uploader.tencent_uploader.main import weixin_setup, TencentVideo | ... | @@ -11,7 +11,7 @@ from uploader.tencent_uploader.main import weixin_setup, TencentVideo |
| 11 | from uploader.tk_uploader.main_chrome import tiktok_setup, TiktokVideo | 11 | from uploader.tk_uploader.main_chrome import tiktok_setup, TiktokVideo |
| 12 | from uploader.wyh_uploader.main import wyh_setup | 12 | from uploader.wyh_uploader.main import wyh_setup |
| 13 | from utils.base_social_media import get_supported_social_media, get_cli_action, SOCIAL_MEDIA_DOUYIN, \ | 13 | from utils.base_social_media import get_supported_social_media, get_cli_action, SOCIAL_MEDIA_DOUYIN, \ |
| 14 | - SOCIAL_MEDIA_TENCENT, SOCIAL_MEDIA_TIKTOK, SOCIAL_MEDIA_KUAISHOU, SOCIAL_MEDIA_WANGYIHAO | 14 | + SOCIAL_MEDIA_TENCENT, SOCIAL_MEDIA_TIKTOK, SOCIAL_MEDIA_KUAISHOU, SOCIAL_MEDIA_WANGYIHAO, SOCIAL_MEDIA_XHS |
| 15 | from utils.constant import TencentZoneTypes | 15 | from utils.constant import TencentZoneTypes |
| 16 | from utils.files_times import get_title_and_hashtags | 16 | from utils.files_times import get_title_and_hashtags |
| 17 | 17 | ||
| ... | @@ -71,6 +71,8 @@ async def main(): | ... | @@ -71,6 +71,8 @@ async def main(): |
| 71 | await ks_setup(str(account_file), handle=True) | 71 | await ks_setup(str(account_file), handle=True) |
| 72 | elif args.platform == SOCIAL_MEDIA_WANGYIHAO: | 72 | elif args.platform == SOCIAL_MEDIA_WANGYIHAO: |
| 73 | await wyh_setup(str(account_file), handle=True) | 73 | await wyh_setup(str(account_file), handle=True) |
| 74 | + # elif args.platform == SOCIAL_MEDIA_XHS: | ||
| 75 | + # await xhs_setup(str(account_file), handle=True) | ||
| 74 | 76 | ||
| 75 | elif args.action == 'upload': | 77 | elif args.action == 'upload': |
| 76 | title, tags = get_title_and_hashtags(args.video_file) | 78 | title, tags = get_title_and_hashtags(args.video_file) | ... | ... |
| 1 | from pathlib import Path | 1 | from pathlib import Path |
| 2 | 2 | ||
| 3 | BASE_DIR = Path(__file__).parent.resolve() | 3 | BASE_DIR = Path(__file__).parent.resolve() |
| 4 | -XHS_SERVER = "http://127.0.0.1:11901" | 4 | +XHS_SERVER = "http://127.0.0.1:5005" |
| 5 | LOCAL_CHROME_PATH = "" # change me necessary! for example C:/Program Files/Google/Chrome/Application/chrome.exe | 5 | LOCAL_CHROME_PATH = "" # change me necessary! for example C:/Program Files/Google/Chrome/Application/chrome.exe | ... | ... |
| ... | @@ -9,6 +9,7 @@ SOCIAL_MEDIA_TIKTOK = "tiktok" | ... | @@ -9,6 +9,7 @@ SOCIAL_MEDIA_TIKTOK = "tiktok" |
| 9 | SOCIAL_MEDIA_BILIBILI = "bilibili" | 9 | SOCIAL_MEDIA_BILIBILI = "bilibili" |
| 10 | SOCIAL_MEDIA_KUAISHOU = "kuaishou" | 10 | SOCIAL_MEDIA_KUAISHOU = "kuaishou" |
| 11 | SOCIAL_MEDIA_WANGYIHAO = 'wangyihao' | 11 | SOCIAL_MEDIA_WANGYIHAO = 'wangyihao' |
| 12 | +SOCIAL_MEDIA_XHS = 'xiaohongshu' | ||
| 12 | 13 | ||
| 13 | 14 | ||
| 14 | def get_supported_social_media() -> List[str]: | 15 | def get_supported_social_media() -> List[str]: | ... | ... |
-
Please register or login to post a comment