mirror of
https://github.com/Evil0ctal/Douyin_TikTok_Download_API.git
synced 2025-04-23 05:24:26 +08:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
f26fec3017
63
README.en.md
63
README.en.md
@ -9,7 +9,7 @@
|
||||
|
||||
🚀「Douyin_TikTok_Download_API」is an out-of-the-box high-performance asynchronous[Tik Tok](https://www.douyin.com)\|[TikTok](https://www.tiktok.com)A data crawling tool that supports API calls, online batch analysis and downloading.
|
||||
|
||||
[](LICENSE)[](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/releases/latest)[](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/stargazers)[](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/network/members)[](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/issues)[](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/issues?q=is%3Aissue+is%3Aclosed)<br>[](https://pypi.org/project/douyin-tiktok-scraper/)[](https://pypi.org/project/douyin-tiktok-scraper/#files)[](https://pypi.org/project/douyin-tiktok-scraper/)[](https://pypi.org/project/douyin-tiktok-scraper/)<br>[](https://api.douyin.wtf/docs)[](https://api-v2.douyin.wtf/docs)<br>[](https://afdian.net/@evil0ctal)[](https://ko-fi.com/evil0ctal)[](https://www.patreon.com/evil0ctal)
|
||||
[](LICENSE)[](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/releases/latest)[](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/stargazers)[](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/network/members)[](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/issues)[](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/issues?q=is%3Aissue+is%3Aclosed)<br>[](https://pypi.org/project/douyin-tiktok-scraper/)[](https://pypi.org/project/douyin-tiktok-scraper/#files)[](https://pypi.org/project/douyin-tiktok-scraper/)[](https://pypi.org/project/douyin-tiktok-scraper/)<br>[](https://api.douyin.wtf/docs)[](https://api.tikhub.io/docs)<br>[](https://afdian.net/@evil0ctal)[](https://ko-fi.com/evil0ctal)[](https://www.patreon.com/evil0ctal)
|
||||
|
||||
</div>
|
||||
|
||||
@ -25,13 +25,13 @@ _Download prohibited videos for data analysis, download without watermark for iO
|
||||
|
||||
## 🖥Public site: I'm vulnerable...don't stress test (••᷄ࡇ•᷅ )
|
||||
|
||||
> **API-V2:**support input`Douyin|TikTok`The user's homepage crawls the author's \[homepage video data (remove watermark link, liked video list (permission must be public), video comment data, background music video list data, etc...), for details, please refer to API- V2 document, in addition, when comparing API-V2 to API-V1 when grabbing TikTok data, the speed of V-2 is V-1`5倍`。
|
||||
> **Tikhub-Opi:**support`Douyin|TikTok`Crawl the author's home page video data (remove watermark link, liked video list (permissions need to be public), video comment data, background music video list data, etc...), for details, please check TikHub- API documentation. In addition, TikHub-API is faster than this project's API when capturing TikTok data.
|
||||
|
||||
🍔Web APP:<https://douyin.wtf/>
|
||||
|
||||
🍟API-V1:<https://api.douyin.wtf/docs>
|
||||
🍟API Document:<https://api.douyin.wtf/docs>
|
||||
|
||||
🌭API-V2:<https://api.tikhub.io/docs>
|
||||
🌭TikHub API Document:<https://api.tikhub.io/docs>
|
||||
|
||||
💾iOS Shortcut:[Shortcut release](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/discussions/104?sort=top)
|
||||
|
||||
@ -44,7 +44,6 @@ _Download prohibited videos for data analysis, download without watermark for iO
|
||||
🛸Other repositories based on this project
|
||||
|
||||
- [TikHubIO/TikHub_API_PyPi](https://github.com/TikHubIO/TikHub_API_PyPi)
|
||||
|
||||
- [Evil0ctal/Douyin_Tiktok_Scraper_PyPi](https://github.com/Evil0ctal/Douyin_Tiktok_Scraper_PyPi)
|
||||
|
||||
## ⚗️Technology stack
|
||||
@ -75,34 +74,35 @@ _Download prohibited videos for data analysis, download without watermark for iO
|
||||
├── web_app.py -> (Web APP)
|
||||
├── web_api.py -> (API)
|
||||
├── scraper.py -> (Parsing library)
|
||||
├── config.ini -> (configuration file)
|
||||
├── config.ini -> (Configuration file)
|
||||
├── install.sh -> (Installation bash script)
|
||||
|
||||
## ✨Features:
|
||||
|
||||
- Douyin (overseas version of Douyin: TikTok) video/picture analysis
|
||||
- Batch analysis on the web page (supports Douyin/TikTok mixed submission)
|
||||
- Batch download of videos without watermark on the analysis result page of the web page (V3.0.0 is temporarily removed, please deploy V2.X version by yourself)
|
||||
- 网页端批量解析(支持抖音/TikTok混合提交)
|
||||
- Batch download of watermark-free videos from the analysis result page on the web page (removed in V3.X and later versions, please deploy V2.X version by yourself)
|
||||
- API call to get link data
|
||||
- make[pip package](https://pypi.org/project/douyin-tiktok-scraper/)Easily and quickly import your projects
|
||||
- [iOS shortcut commands quickly call API](https://apps.apple.com/cn/app/%E5%BF%AB%E6%8D%B7%E6%8C%87%E4%BB%A4/id915249334)Realize in-app download without watermark video/photo gallery
|
||||
- Parse all videos on the author's homepage ([API-V2](https://api-v2.douyin.wtf/docs)Support Douyin/TikTok)
|
||||
- Parse all comment information in the video ([API-V2](https://api-v2.douyin.wtf/docs)Support Douyin/TikTok)
|
||||
- [iOS shortcut command to quickly call API](https://apps.apple.com/cn/app/%E5%BF%AB%E6%8D%B7%E6%8C%87%E4%BB%A4/id915249334)Realize in-app download without watermark video/photo gallery
|
||||
- Parse all videos on the author's homepage ([TikHub-API](https://api.tikhub.io/docs)Support Douyin/TikTok)
|
||||
- Parse all comment information in the video ([TikHub-API](https://api.tikhub.io/docs)Support Douyin/TikTok)
|
||||
|
||||
* * *
|
||||
|
||||
## 🤦To-do list:
|
||||
|
||||
> 💡Welcome to put forward new suggestions or share your ideas with me in issue, or directly submit PR to[Development branch](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/tree/Development)♪(・ω・)ノ)
|
||||
> 💡Suggestions or PRs are welcome to this repository ♪(・ω・)ノ)
|
||||
|
||||
- [ ] Write a desktop downloader to realize local batch download
|
||||
- [ ] API-V2 adds data crawling for hash_tag pages[#101](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/issues/101)
|
||||
- [ ] Write an asynchronous downloader on the desktop to achieve local batch download
|
||||
- [ ] TikHub-API adds data crawling for hash_tag pages[#101](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/issues/101)
|
||||
- [ ] Add support for other short video platforms, such as: Douyin Volcano, Kuaishou, Watermelon Video, Bilibili
|
||||
|
||||
* * *
|
||||
|
||||
## 📦Call the parsing library:
|
||||
## 📦Calling the parsing library:
|
||||
|
||||
> 💡PyPi:<https://pypi.org/project/douyin-tiktok-scraper/>
|
||||
> 💡PyPi:<https://pypi.org/project/douyin-tiktok-scraper/>
|
||||
|
||||
Install the parsing library:`pip install douyin-tiktok-scraper`
|
||||
|
||||
@ -131,7 +131,7 @@ asyncio.run(hybrid_parsing(url=input("Paste Douyin/TikTok share URL here: ")))
|
||||
7.43 pda:/ 让你在几秒钟之内记住我 https://v.douyin.com/L5pbfdP/ 复制此链接,打开Dou音搜索,直接观看视频!
|
||||
```
|
||||
|
||||
- Douyin short URL (copy in APP)
|
||||
- 抖音短网址 (APP内复制)
|
||||
|
||||
```text
|
||||
https://v.douyin.com/L4FJNR3/
|
||||
@ -176,17 +176,17 @@ https://www.tiktok.com/@evil0ctal/video/7156033831819037994
|
||||
|
||||
> 💡Tip: You can also view the interface documentation in the code comments of web_api.py
|
||||
|
||||
**_API-V1 documentation:_**
|
||||
**_API documentation:_**
|
||||
|
||||
local:<http://localhost:8000/docs>
|
||||
|
||||
online:<https://api.douyin.wtf/docs>
|
||||
|
||||
**_API-V2 documentation:_**
|
||||
**_TikHub-API documentation:_**
|
||||
|
||||
online:<https://api-v2.douyin.wtf/docs>
|
||||
online:<https://api.tikhub.io/docs>
|
||||
|
||||
**_API-V1 Demo:_**
|
||||
**_API demo:_**
|
||||
|
||||
- Crawl video data (TikTok or Douyin hybrid analysis)`https://api.douyin.wtf/api?url=[视频链接/Video URL]&minimal=false`
|
||||
- Download video/photo gallery (TikTok or Douyin hybrid analysis)`https://api.douyin.wtf/download?url=[视频链接/Video URL]&prefix=true&watermark=false`
|
||||
@ -212,7 +212,7 @@ online:<https://api-v2.douyin.wtf/docs>
|
||||
|
||||
> 💡Tips: It is best to deploy this project to a server in the United States, otherwise strange bugs may appear.
|
||||
|
||||
recommend everyone to use[Digitalocean](https://www.digitalocean.com/)The server, mainly because it is free.
|
||||
recommend everyone to use[Digitalocean](https://www.digitalocean.com/)The server, mainly because of free.
|
||||
|
||||
Sign up with my invitation link, you can get a $200 credit, and when you spend $25 on it, I can also get a $25 reward.
|
||||
|
||||
@ -265,6 +265,23 @@ API is running! You can visit http://your_ip:port
|
||||
You can stop the api service by running: systemctl stop web_api.service
|
||||
```
|
||||
|
||||
> Start/stop service
|
||||
|
||||
- web service:`systemctl start/stop web_app.service`
|
||||
|
||||
- api service:`systemctl start/stop web_api.service`
|
||||
|
||||
> Turn on/off autorun at startup
|
||||
|
||||
- web service:`systemctl enable/disable web_app.service`
|
||||
- api service:`systemctl enable/disable web_api.service`
|
||||
|
||||
> update item
|
||||
|
||||
- `cd /www/wwwroot`
|
||||
|
||||
- `git pull https://github.com/Evil0ctal/Douyin_TikTok_Download_API.git`
|
||||
|
||||
## 💽Deployment (Method 2 Docker)
|
||||
|
||||
> 💡Docker Image repo:[Docker Hub](https://hub.docker.com/repository/docker/evil0ctal/douyin_tiktok_download_api)
|
||||
@ -336,7 +353,7 @@ Web main interface:
|
||||
</details>
|
||||
<hr>
|
||||
|
||||
## 📜 Star history
|
||||
## 📜 Star History
|
||||
|
||||
[](https://star-history.com/#Evil0ctal/Douyin_TikTok_Download_API&Timeline)
|
||||
|
||||
|
51
README.md
51
README.md
@ -22,8 +22,8 @@
|
||||
[](https://pypi.org/project/douyin-tiktok-scraper/)
|
||||
[](https://pypi.org/project/douyin-tiktok-scraper/)
|
||||
<br>
|
||||
[](https://api.douyin.wtf/docs)
|
||||
[](https://api-v2.douyin.wtf/docs)
|
||||
[](https://api.douyin.wtf/docs)
|
||||
[](https://api.tikhub.io/docs)
|
||||
<br>
|
||||
[](https://afdian.net/@evil0ctal)
|
||||
[](https://ko-fi.com/evil0ctal)
|
||||
@ -44,13 +44,13 @@
|
||||
|
||||
## 🖥公共站点: 我很脆弱...请勿压测(·•᷄ࡇ•᷅ )
|
||||
|
||||
> **API-V2:** 支持输入`Douyin|TikTok`用户主页爬取该作者[主页视频数据(去水印链接, 已点赞视频列表(权限需为公开), 视频评论数据, 背景音乐视频列表数据, 等等...), 详细信息请查看API-V2文档,此外API-V2对比API-V1在抓取TikTok数据时,V-2的速度是V-1的`5倍`。
|
||||
> **TikHub-API:** 支持`Douyin|TikTok`用户主页爬取该作者[主页视频数据(去水印链接, 已点赞视频列表(权限需为公开), 视频评论数据, 背景音乐视频列表数据, 等等...), 详细信息请查看TikHub-API文档,此外TikHub-API对比本项目API在抓取TikTok数据时,TikHub-API速度更快。
|
||||
|
||||
🍔Web APP: [https://douyin.wtf/](https://douyin.wtf/)
|
||||
|
||||
🍟API-V1: [https://api.douyin.wtf/docs](https://api.douyin.wtf/docs)
|
||||
🍟API Document: [https://api.douyin.wtf/docs](https://api.douyin.wtf/docs)
|
||||
|
||||
🌭API-V2: [https://api.tikhub.io/docs](https://api.tikhub.io/docs)
|
||||
🌭TikHub API Document: [https://api.tikhub.io/docs](https://api.tikhub.io/docs)
|
||||
|
||||
💾iOS Shortcut(快捷指令): [Shortcut release](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/discussions/104?sort=top)
|
||||
|
||||
@ -63,7 +63,6 @@
|
||||
🛸基于本项目的其他仓库
|
||||
|
||||
- [TikHubIO/TikHub_API_PyPi](https://github.com/TikHubIO/TikHub_API_PyPi)
|
||||
|
||||
- [Evil0ctal/Douyin_Tiktok_Scraper_PyPi](https://github.com/Evil0ctal/Douyin_Tiktok_Scraper_PyPi)
|
||||
|
||||
## ⚗️技术栈
|
||||
@ -95,28 +94,29 @@
|
||||
├── web_app.py -> (Web APP)
|
||||
├── web_api.py -> (API)
|
||||
├── scraper.py -> (Parsing library)
|
||||
├── config.ini -> (configuration file)
|
||||
├── config.ini -> (Configuration file)
|
||||
├── install.sh -> (Installation bash script)
|
||||
```
|
||||
|
||||
## ✨功能:
|
||||
|
||||
- 抖音(抖音海外版: TikTok)视频/图片解析
|
||||
- 网页端批量解析(支持抖音/TikTok混合提交)
|
||||
- 网页端解析结果页批量下载无水印视频(V3.0.0暂时移除,请自行部署V2.X版本)
|
||||
- 网页端解析结果页批量下载无水印视频(V3.X以上版本移除,请自行部署V2.X版本)
|
||||
- API调用获取链接数据
|
||||
- 制作[pip包](https://pypi.org/project/douyin-tiktok-scraper/)方便快速导入你的项目
|
||||
- [iOS快捷指令快速调用API](https://apps.apple.com/cn/app/%E5%BF%AB%E6%8D%B7%E6%8C%87%E4%BB%A4/id915249334)实现应用内下载无水印视频/图集
|
||||
- 解析作者主页内所有视频([API-V2](https://api-v2.douyin.wtf/docs) 支持抖音/TikTok)
|
||||
- 解析视频内所有评论信息([API-V2](https://api-v2.douyin.wtf/docs) 支持抖音/TikTok)
|
||||
- 解析作者主页内所有视频([TikHub-API](https://api.tikhub.io/docs) 支持抖音/TikTok)
|
||||
- 解析视频内所有评论信息([TikHub-API](https://api.tikhub.io/docs) 支持抖音/TikTok)
|
||||
|
||||
---
|
||||
|
||||
## 🤦待办清单:
|
||||
|
||||
> 💡欢迎提出新的建议或将你的思路在issue中与我分享,或直接提交PR至[Development分支](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/tree/Development) ♪(・ω・)ノ)
|
||||
> 💡欢迎提出建议或直接提交PR至此仓库 ♪(・ω・)ノ)
|
||||
|
||||
- [ ] 编写一个桌面端的下载器实现本地批量下载
|
||||
- [ ] API-V2添加对hash_tag页面的数据爬取 [#101](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/issues/101)
|
||||
- [ ] 编写一个桌面端的异步下载器实现本地批量下载
|
||||
- [ ] TikHub-API添加对hash_tag页面的数据爬取 [#101](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/issues/101)
|
||||
- [ ] 对其他短视频平台添加支持,如:抖音火山版,快手,西瓜视频,哔哩哔哩
|
||||
|
||||
---
|
||||
@ -197,17 +197,17 @@ https://www.tiktok.com/@evil0ctal/video/7156033831819037994
|
||||
|
||||
> 💡提示:也可以在web_api.py的代码注释中查看接口文档
|
||||
|
||||
***API-V1文档:***
|
||||
***API文档:***
|
||||
|
||||
本地:[http://localhost:8000/docs](http://localhost:8000/docs)
|
||||
|
||||
在线:[https://api.douyin.wtf/docs](https://api.douyin.wtf/docs)
|
||||
|
||||
***API-V2文档:***
|
||||
***TikHub-API文档:***
|
||||
|
||||
在线:[https://api-v2.douyin.wtf/docs](https://api-v2.douyin.wtf/docs)
|
||||
在线:[https://api.tikhub.io/docs](https://api.tikhub.io/docs)
|
||||
|
||||
***API-V1演示:***
|
||||
***API演示:***
|
||||
|
||||
- 爬取视频数据(TikTok或Douyin混合解析)
|
||||
`https://api.douyin.wtf/api?url=[视频链接/Video URL]&minimal=false`
|
||||
@ -291,6 +291,23 @@ API is running! You can visit http://your_ip:port
|
||||
You can stop the api service by running: systemctl stop web_api.service
|
||||
```
|
||||
|
||||
> 开启/停止服务
|
||||
|
||||
- web服务:`systemctl start/stop web_app.service`
|
||||
|
||||
- api服务:`systemctl start/stop web_api.service`
|
||||
|
||||
> 开启/关闭开机自动运行
|
||||
|
||||
- web服务:`systemctl enable/disable web_app.service`
|
||||
- api服务:`systemctl enable/disable web_api.service`
|
||||
|
||||
> 更新项目
|
||||
|
||||
- `cd /www/wwwroot`
|
||||
|
||||
- `git pull https://github.com/Evil0ctal/Douyin_TikTok_Download_API.git`
|
||||
|
||||
## 💽部署(方式二 Docker)
|
||||
|
||||
> 💡Docker Image repo: [Docker Hub](https://hub.docker.com/repository/docker/evil0ctal/douyin_tiktok_download_api)
|
||||
|
Loading…
x
Reference in New Issue
Block a user