1. tk(chrome support)
2. tk add thumbnail support
This commit is contained in:
@@ -67,7 +67,7 @@ meta_file 内容(content):
|
||||
```
|
||||
|
||||
### Usage
|
||||
1. 设置conf 文件中的 `LOCAL_CHROME_PATH`(在douyin 或者视频号可能出现chromium 不兼容的各种问题,建议设置本地的chrome)
|
||||
1. 设置conf 文件中的 `LOCAL_CHROME_PATH`(在douyin、视频号 tiktok可能出现chromium 不兼容的各种问题,建议设置本地的chrome)
|
||||
2. 这里分割出来3条路
|
||||
- 可自行研究源码,免费、任意 穿插在自己的项目中
|
||||
- 可参考下面的各个平台的使用指南,`examples`文件夹中有各种示例代码
|
||||
@@ -141,7 +141,7 @@ generate_schedule_time_next_day 默认从第二天开始(此举为避免选择
|
||||
> 解决方案:
|
||||
> 1. 下载chrome
|
||||
> 2. 找到chrome的安装目录
|
||||
> 3. 将目录配置到DouYinVideo类中 self.local_executable_path = "xxx/xxx/chrome.exe"
|
||||
> 3. 将本地chrome 路径conf文件中 LOCAL_CHROME_PATH = "xxx/xxx/chrome.exe"
|
||||
|
||||
|
||||
参考项目:
|
||||
@@ -168,7 +168,7 @@ generate_schedule_time_next_day 默认从第二天开始(此举为避免选择
|
||||
> 解决方案:
|
||||
> 1. 下载chrome
|
||||
> 2. 找到chrome的安装目录
|
||||
> 3. 将目录配置到TencentVideo类中 self.local_executable_path = "xxx/xxx/chrome.exe"
|
||||
> 3. 将本地chrome 路径conf文件中 LOCAL_CHROME_PATH = "xxx/xxx/chrome.exe"
|
||||
|
||||
---
|
||||
|
||||
@@ -234,11 +234,16 @@ bilibili cookie 长期有效(至少我运行2年以来是这样的)
|
||||
### 5. tiktok
|
||||
使用playwright模拟浏览器行为(Simulating Browser Behavior with playwright)
|
||||
1. 准备视频目录结构(Prepare the video directory structure)
|
||||
2. cookie获取(generate your cookie):get_tk_cookie.py
|
||||
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
|
||||

|
||||
3. 上传视频(upload video):upload_video_to_tiktok.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.
|
||||
|
||||
其他部分解释:
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user