change readme

This commit is contained in:
pookz@stme
2023-12-21 16:56:23 +08:00
parent 8077db5f2b
commit 2c436cd3b6
4 changed files with 35 additions and 4 deletions
+25 -2
View File
@@ -5,9 +5,10 @@ social-auto-upload 该项目旨在自动化发布视频到各个社交媒体平
## 💡Feature ## 💡Feature
- 中国主流社交媒体平台: - 中国主流社交媒体平台:
- 抖音 - 抖音
- 视频号(todo) - 视频号
- bilibili(todo) - bilibili(todo)
- 小红书 - 小红书
- 快手
- 部分国外社交媒体: - 部分国外社交媒体:
- tiktok(todo) - tiktok(todo)
@@ -88,7 +89,29 @@ generate_schedule_time_next_day 默认从第二天开始(此举为避免选择
--- ---
### 3. 小红书 ### 3. 视频号
使用playwright模拟浏览器行为
1. 准备视频目录结构
2. cookie获取:get_tencent_cookie.py 扫码登录
3. 上传视频:upload_video_to_tencent.py
其他部分解释:
```
参考上面douyin_setup 配置
```
> 视频号使用chromium会出现不支持上传视频,需要自行指定本地浏览器
> 解决方案:
> 1. 下载chrome
> 2. 找到chrome的安装目录
> 3. 将目录配置到DouYinVideo类中 self.local_executable_path = "xxx/xxx/chrome.exe"
---
### 4. 小红书
该实现,借助ReaJason的[xhs](https://github.com/ReaJason/xhs),再次感谢。 该实现,借助ReaJason的[xhs](https://github.com/ReaJason/xhs),再次感谢。
1. 目录结构同上 1. 目录结构同上
+9
View File
@@ -0,0 +1,9 @@
import asyncio
from pathlib import Path
from conf import BASE_DIR
from tencent_uploader.main import weixin_setup
if __name__ == '__main__':
account_file = Path(BASE_DIR / "tencent_uploader" / "account.json")
cookie_setup = asyncio.run(weixin_setup(str(account_file), handle=True))
+1 -2
View File
@@ -83,8 +83,7 @@ class TencentVideo(object):
self.publish_date = publish_date self.publish_date = publish_date
self.account_file = account_file self.account_file = account_file
self.category = category self.category = category
self.local_executable_path = "C:/Program Files/Google/Chrome/Application/chrome.exe" self.local_executable_path = "" # change me necessary!
self.date_format = '%Y年%m月%d日 %H:%M'
async def set_schedule_time_tencent(self, page, publish_date): async def set_schedule_time_tencent(self, page, publish_date):
print("click schedule") print("click schedule")