使用playwright模拟浏览器行为(Simulating Browser Behavior with playwright)
1. 准备视频目录结构(Prepare the video directory structure)
2. 将本地chrome路径配置到conf文件中 LOCAL_CHROME_PATH = "xxx/xxx/chrome.exe"(Configure the local chrome path to the conf file)
3. cookie获取(generate your cookie):get_tk_cookie.py

4. 上传视频(upload video):upload_video_to_tiktok.py
24.7.3 update local chrome support:
- you can upload your custom thumbnail(place `png` file at the path of `videos`)
- if not, the system will take the first frame of the video as the thumbnail.
- chrome drive can't login by gmail oauth. the google don't support it. (if you want login by google oauth you can use the `tk_uploader/main.py` old firefox.)
- before the upload process change the language to eng.
其他部分解释:
```
参考上面douyin_setup 配置
```
other part explain(for eng friends):
```
tiktok_setup handle parameter is True to get cookie manually False to check cookie validity
generate_schedule_time_next_day defaults to start on the next day (this is to avoid accidental time selection errors)
Parameter explanation:
- total_videos Number of videos uploaded this time
- videos_per_day Number of videos uploaded per day
- daily_times The video posting times are 6, 11, 14, 16, 22 by default.
- start_days Starts on the nth day.
```
参考项目:
- https://github.com/wkaisertexas/tiktok-uploader
---
### 其余部分(todo)
整理后上传
---
## 其他优秀项目
- https://github.com/KLordy/auto_publish_videos
- db支持
- 定期自动发布
- cookie db管理
- 视频去重
- 消息推送
## 🐾Communicate
[Donate as u like](https://www.buymeacoffee.com/hysn2001m)
如果你也是`一个人`,喜欢`折腾`, 想要在如此恶劣的大环境寻找突破
希望探索 #技术变现 #AI创业 #跨境航海 #自动化上传 #自动化视频 #技术探讨
可以来群里和大家交流
|||
|:-:|:-:|
|后台回复 `上传` 加群交流|如果你觉得有用|
## Star History
> 如果这个项目对你有帮助,⭐以表示支持
[](https://star-history.com/#dreammis/social-auto-upload&Date)