1. add xhs
2. change douyin third-pard(checkbox) 3. add douyin demo 4. add group-qr
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# social-auto-upload
|
||||
social-auto-upload 该项目旨在自动化发布视频到各个社交媒体平台
|
||||
|
||||
|
||||
## 💡Feature
|
||||
- 中国主流社交媒体平台:
|
||||
- 抖音
|
||||
@@ -25,9 +26,15 @@ pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
playwright install chromium
|
||||
```
|
||||
|
||||
# 🐇 About
|
||||
该项目为我自用项目抽离出来,我的发布策略是定时发布(提前一天发布),故发布部分采用的事件均为第二天的时间
|
||||
|
||||
如果你有需求立即发布,可自行研究源码或者向我提问
|
||||
|
||||
|
||||
# 核心模块解释
|
||||
|
||||
## 视频文件准备
|
||||
## 1. 视频文件准备
|
||||
filepath 本地视频目录,目录包含
|
||||
- 视频文件
|
||||
- 视频meta信息txt文件
|
||||
@@ -43,7 +50,9 @@ meta_file 内容:
|
||||
#坚持不懈 #爱情执着 #奋斗使者 #短视频
|
||||
```
|
||||
|
||||
### 抖音
|
||||
### 2. 抖音
|
||||
<img src="media/show/pdf3.gif" alt="douyin show" width="500"/>
|
||||
|
||||
使用playwright模拟浏览器行为
|
||||
> 抖音前端实现,诸多css class id 均为随机数,故项目中locator多采用相对定位,而非固定定位
|
||||
1. 准备视频目录结构
|
||||
@@ -71,9 +80,45 @@ generate_schedule_time_next_day 默认从第二天开始(此举为避免选择
|
||||
- https://github.com/lishang520/DouYin-Auto-Upload.git
|
||||
|
||||
|
||||
|
||||
### 3. 小红书
|
||||
该实现,借助ReaJason的[xhs](https://github.com/ReaJason/xhs),再次感谢。
|
||||
|
||||
1. 目录结构同上
|
||||
2. cookie获取,可使用chrome插件:EditThisCookie
|
||||
- 设置导出格式
|
||||

|
||||
- 导出
|
||||

|
||||
3. 黏贴至 accounts.ini文件中
|
||||
|
||||
|
||||
#### 解释与注意事项:
|
||||
|
||||
##### 上传方式
|
||||
- 本地签名
|
||||
- 自建签名服务
|
||||
|
||||
测试下来发现本地签名,在实际多账号情况下会存在问题
|
||||
故如果你有多账号分发,建议采用自建签名服务(todo 上传docker配置)
|
||||
|
||||
##### 疑难杂症
|
||||
遇到签名问题,可尝试更新cdn.jsdelivr.net_gh_requireCool_stealth.min.js_stealth.min.js文件
|
||||
https://github.com/requireCool/stealth.min.js
|
||||
|
||||
参考: https://reajason.github.io/xhs/basic
|
||||
|
||||
##### todo
|
||||
- 扫码登录方式(实验下来发现与浏览器获取的存在区别,会有问题,未来再研究)
|
||||
|
||||
|
||||
参考项目:
|
||||
- https://github.com/ReaJason/xhs
|
||||
|
||||
### 其余部分(todo)
|
||||
整理后上传
|
||||
|
||||
# 联系我
|
||||
探讨自动化上传、自动制作视频
|
||||
- 微信:rstar019
|
||||
|
||||
<img src="media/group-qr.png" alt="group-qr" width="300"/>
|
||||
|
||||
Reference in New Issue
Block a user