From de023baf348b34e9a55e76622a4f052ceb616af9 Mon Sep 17 00:00:00 2001 From: Evil0ctal Date: Wed, 21 Dec 2022 17:03:01 -0800 Subject: [PATCH 01/10] =?UTF-8?q?=F0=9F=93=82Add=20`web=5Fapi.conf`=20for?= =?UTF-8?q?=20`supervisor`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supervisor/web_api.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 supervisor/web_api.conf diff --git a/supervisor/web_api.conf b/supervisor/web_api.conf new file mode 100644 index 0000000..8df0882 --- /dev/null +++ b/supervisor/web_api.conf @@ -0,0 +1,14 @@ +[program:web_api] +command=python3 web_api.py +directory=/www/wwwroot/Douyin_TikTok_Download_API/ +autorestart=true +startsecs=3 +startretries=3 +stdout_logfile=/www/wwwroot/Douyin_TikTok_Download_API/log/web_api.out.log +stderr_logfile=/www/wwwroot/Douyin_TikTok_Download_API/log/web_api.err.log +stdout_logfile_maxbytes=2MB +stderr_logfile_maxbytes=2MB +user=root +priority=999 +numprocs=1 +process_name=%(program_name)s_%(process_num)02d From 3d274d718bd5c092856a226e5b127c8afeefa281 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 22 Dec 2022 01:03:29 +0000 Subject: [PATCH 02/10] docs: Added README."en".md translation via https://github.com/dephraiim/translate-readme --- README.en.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.en.md b/README.en.md index d87583a..f5206c8 100644 --- a/README.en.md +++ b/README.en.md @@ -79,7 +79,7 @@ _Download prohibited videos for data analysis, download without watermark for iO - API call to get link data - make[pip package](https://pypi.org/project/douyin-tiktok-scraper/)Easily and quickly import your projects - [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 -- 解析作者主页内所有视频([API-V2](https://api-v2.douyin.wtf/docs)Support Douyin/TikTok) +- 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) * * * @@ -172,7 +172,7 @@ https://www.tiktok.com/@evil0ctal/video/7156033831819037994 **_API-V1 documentation:_** -local: +本地: online: @@ -279,7 +279,7 @@ docker compose pull && docker compose down && docker compose up -d ## 📸Screenshot -**_API速度测试(对比官方API)_** +**_API speed test (compared to official API)_**
🔎点击展开截图 From dfbec00f21268dfd907d89c783070d9f17d38143 Mon Sep 17 00:00:00 2001 From: Evil0ctal Date: Wed, 21 Dec 2022 17:06:07 -0800 Subject: [PATCH 03/10] =?UTF-8?q?=F0=9F=93=82Add=20`web=5Fapp.conf`=20for?= =?UTF-8?q?=20`supervisor`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supervisor/web_app.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 supervisor/web_app.conf diff --git a/supervisor/web_app.conf b/supervisor/web_app.conf new file mode 100644 index 0000000..cfccb2f --- /dev/null +++ b/supervisor/web_app.conf @@ -0,0 +1,14 @@ +[program:web_app] +command=python3 web_app.py +directory=/www/wwwroot/Douyin_TikTok_Download_API/ +autorestart=true +startsecs=3 +startretries=3 +stdout_logfile=/www/wwwroot/Douyin_TikTok_Download_API/log/web_app.out.log +stderr_logfile=/www/wwwroot/Douyin_TikTok_Download_API/log/web_app.err.log +stdout_logfile_maxbytes=2MB +stderr_logfile_maxbytes=2MB +user=root +priority=999 +numprocs=1 +process_name=%(program_name)s_%(process_num)02d From 857bc0bb83172f62bc1fcfb76eb3c5a3119cbc1d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 22 Dec 2022 01:06:31 +0000 Subject: [PATCH 04/10] docs: Added README."en".md translation via https://github.com/dephraiim/translate-readme --- README.en.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.en.md b/README.en.md index f5206c8..ea5e666 100644 --- a/README.en.md +++ b/README.en.md @@ -15,7 +15,7 @@ ## 👻 Introduction -> 🚨If you need to use a private server to run this project, please refer to the deployment method\[[Docker deployment](./README.md#%E9%83%A8%E7%BD%B2%E6%96%B9%E5%BC%8F%E4%BA%8C-docker),[manual deployment](./README.md#%E9%83%A8%E7%BD%B2%E6%96%B9%E5%BC%8F%E4%B8%80-linux)] +> 🚨如需使用私有服务器运行本项目,请参考部署方式\[[Docker deployment](./README.md#%E9%83%A8%E7%BD%B2%E6%96%B9%E5%BC%8F%E4%BA%8C-docker),[manual deployment](./README.md#%E9%83%A8%E7%BD%B2%E6%96%B9%E5%BC%8F%E4%B8%80-linux)] This project is based on[PyWebIO](https://github.com/pywebio/PyWebIO),[FastAPI](https://fastapi.tiangolo.com/),[AIOHTTP](https://docs.aiohttp.org/), fast asynchronous[Tik Tok](https://www.douyin.com/)/[TikTok](https://www.tiktok.com/)It is a data crawling tool, and realizes online batch analysis and download of video or atlas without watermark through the web terminal, data crawling API, iOS shortcut command without watermark download and other functions. You can deploy or transform this project yourself to achieve more functions, or you can call it directly in your project[scraper.py](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/blob/Stable/scraper.py)or install an existing[pip package](https://pypi.org/project/douyin-tiktok-scraper/)As a parsing library, it is easy to crawl data, etc... @@ -79,7 +79,7 @@ _Download prohibited videos for data analysis, download without watermark for iO - API call to get link data - make[pip package](https://pypi.org/project/douyin-tiktok-scraper/)Easily and quickly import your projects - [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 ([API-V2](https://api-v2.douyin.wtf/docs)Support Douyin/TikTok) +- Parse all videos on the author's homepage ([API-V2](https://api-v2.douyin.wtf/docs) 支持抖音/TikTok) - Parse all comment information in the video ([API-V2](https://api-v2.douyin.wtf/docs)Support Douyin/TikTok) * * * @@ -96,7 +96,7 @@ _Download prohibited videos for data analysis, download without watermark for iO ## 📦Calling the parsing library: -> 💡PyPi: +> 💡PyPi: Install the parsing library:`pip install douyin-tiktok-scraper` @@ -172,7 +172,7 @@ https://www.tiktok.com/@evil0ctal/video/7156033831819037994 **_API-V1 documentation:_** -本地: +local: online: @@ -207,7 +207,7 @@ online: > 💡Tips: It is best to deploy this project to a server in the United States, otherwise strange bugs may appear. - First go to the security group to open ports 8080 (Web) and 8000 (API). -- Search in the Pagoda panel app store`进程守护`or install manually`supervisord`: +- Search in the Pagoda panel app store`进程守护`or manually install`supervisord`: [宝塔面板] @@ -309,7 +309,7 @@ Web main interface:

-## 📜 Star history +## 📜 Star History [![Star History Chart](https://api.star-history.com/svg?repos=Evil0ctal/Douyin_TikTok_Download_API&type=Timeline)](https://star-history.com/#Evil0ctal/Douyin_TikTok_Download_API&Timeline) From 0b64011db4d76fd270346d8d5f1009c8a2c2fad0 Mon Sep 17 00:00:00 2001 From: Evil0ctal Date: Wed, 21 Dec 2022 17:29:06 -0800 Subject: [PATCH 05/10] Delete supervisor directory --- supervisor/web_api.conf | 14 -------------- supervisor/web_app.conf | 14 -------------- 2 files changed, 28 deletions(-) delete mode 100644 supervisor/web_api.conf delete mode 100644 supervisor/web_app.conf diff --git a/supervisor/web_api.conf b/supervisor/web_api.conf deleted file mode 100644 index 8df0882..0000000 --- a/supervisor/web_api.conf +++ /dev/null @@ -1,14 +0,0 @@ -[program:web_api] -command=python3 web_api.py -directory=/www/wwwroot/Douyin_TikTok_Download_API/ -autorestart=true -startsecs=3 -startretries=3 -stdout_logfile=/www/wwwroot/Douyin_TikTok_Download_API/log/web_api.out.log -stderr_logfile=/www/wwwroot/Douyin_TikTok_Download_API/log/web_api.err.log -stdout_logfile_maxbytes=2MB -stderr_logfile_maxbytes=2MB -user=root -priority=999 -numprocs=1 -process_name=%(program_name)s_%(process_num)02d diff --git a/supervisor/web_app.conf b/supervisor/web_app.conf deleted file mode 100644 index cfccb2f..0000000 --- a/supervisor/web_app.conf +++ /dev/null @@ -1,14 +0,0 @@ -[program:web_app] -command=python3 web_app.py -directory=/www/wwwroot/Douyin_TikTok_Download_API/ -autorestart=true -startsecs=3 -startretries=3 -stdout_logfile=/www/wwwroot/Douyin_TikTok_Download_API/log/web_app.out.log -stderr_logfile=/www/wwwroot/Douyin_TikTok_Download_API/log/web_app.err.log -stdout_logfile_maxbytes=2MB -stderr_logfile_maxbytes=2MB -user=root -priority=999 -numprocs=1 -process_name=%(program_name)s_%(process_num)02d From 9b6159b3fefc187868a92b941e5934ff1ef0f25d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 22 Dec 2022 01:29:29 +0000 Subject: [PATCH 06/10] docs: Added README."en".md translation via https://github.com/dephraiim/translate-readme --- README.en.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.en.md b/README.en.md index ea5e666..408549a 100644 --- a/README.en.md +++ b/README.en.md @@ -15,15 +15,15 @@ ## 👻 Introduction -> 🚨如需使用私有服务器运行本项目,请参考部署方式\[[Docker deployment](./README.md#%E9%83%A8%E7%BD%B2%E6%96%B9%E5%BC%8F%E4%BA%8C-docker),[manual deployment](./README.md#%E9%83%A8%E7%BD%B2%E6%96%B9%E5%BC%8F%E4%B8%80-linux)] +> 🚨If you need to use a private server to run this project, please refer to the deployment method\[[Docker deployment](./README.md#%E9%83%A8%E7%BD%B2%E6%96%B9%E5%BC%8F%E4%BA%8C-docker),[manual deployment](./README.md#%E9%83%A8%E7%BD%B2%E6%96%B9%E5%BC%8F%E4%B8%80-linux)] This project is based on[PyWebIO](https://github.com/pywebio/PyWebIO),[FastAPI](https://fastapi.tiangolo.com/),[AIOHTTP](https://docs.aiohttp.org/), fast asynchronous[Tik Tok](https://www.douyin.com/)/[TikTok](https://www.tiktok.com/)It is a data crawling tool, and realizes online batch analysis and download of video or atlas without watermark through the web terminal, data crawling API, iOS shortcut command without watermark download and other functions. You can deploy or transform this project yourself to achieve more functions, or you can call it directly in your project[scraper.py](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/blob/Stable/scraper.py)or install an existing[pip package](https://pypi.org/project/douyin-tiktok-scraper/)As a parsing library, it is easy to crawl data, etc... _Some simple application scenarios:_ -_Download prohibited videos for data analysis, download without watermark for iOS (with[iOS built-in shortcut command APP](https://apps.apple.com/cn/app/%E5%BF%AB%E6%8D%B7%E6%8C%87%E4%BB%A4/id915249334)Cooperate with the API of this project to realize in-app download or read clipboard download), etc....._ +_Download prohibited videos for data analysis, download without watermark for iOS (with[iOS built-in shortcut command APP](https://apps.apple.com/cn/app/%E5%BF%AB%E6%8D%B7%E6%8C%87%E4%BB%A4/id915249334)Cooperate with this project API to realize in-app download or read clipboard download), etc....._ -## 🖥Public site: I'm fragile...don't stress test (••᷄ࡇ•᷅ ) +## 🖥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倍`。 @@ -79,7 +79,7 @@ _Download prohibited videos for data analysis, download without watermark for iO - API call to get link data - make[pip package](https://pypi.org/project/douyin-tiktok-scraper/)Easily and quickly import your projects - [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 ([API-V2](https://api-v2.douyin.wtf/docs) 支持抖音/TikTok) +- 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) * * * @@ -96,7 +96,7 @@ _Download prohibited videos for data analysis, download without watermark for iO ## 📦Calling the parsing library: -> 💡PyPi: +> 💡PyPi: Install the parsing library:`pip install douyin-tiktok-scraper` @@ -200,14 +200,14 @@ online: https://api.douyin.wtf/@evil0ctal/video/7156033831819037994 # Return No Watermark Video Download Response -**_For more demos, please check the content of the document..._** +**_更多演示请查看文档内容......_** ## 💻 Deployment (method 1 Linux) > 💡Tips: It is best to deploy this project to a server in the United States, otherwise strange bugs may appear. - First go to the security group to open ports 8080 (Web) and 8000 (API). -- Search in the Pagoda panel app store`进程守护`or manually install`supervisord`: +- Search in the Pagoda panel app store`进程守护`or install manually`supervisord`: [宝塔面板] @@ -309,7 +309,7 @@ Web main interface:
-## 📜 Star History +## 📜 Star history [![Star History Chart](https://api.star-history.com/svg?repos=Evil0ctal/Douyin_TikTok_Download_API&type=Timeline)](https://star-history.com/#Evil0ctal/Douyin_TikTok_Download_API&Timeline) From 126c526008b745b9efd04bf2d1b691474f5e37b5 Mon Sep 17 00:00:00 2001 From: Evil0ctal Date: Wed, 21 Dec 2022 18:16:23 -0800 Subject: [PATCH 07/10] =?UTF-8?q?=E2=9A=99=EF=B8=8FAdd=20daemon=20for=20`w?= =?UTF-8?q?eb=5Fapi.py`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- daemon/web_api.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 daemon/web_api.service diff --git a/daemon/web_api.service b/daemon/web_api.service new file mode 100644 index 0000000..b2e458d --- /dev/null +++ b/daemon/web_api.service @@ -0,0 +1,14 @@ +[Unit] +Description=www/wwwroot/Douyin_TikTok_Download_API/web_api.py deamon +After=rc-local.service + +[Service] +Type=simple +User=root +Group=root +WorkingDirectory=/www/wwwroot/Douyin_TikTok_Download_API +ExecStart=python3 web_api.py +Restart=always + +[Install] +WantedBy=multi-user.target From 39424fc0b257e169a75b58c0f4dd7f1e98ac9b9b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 22 Dec 2022 02:16:49 +0000 Subject: [PATCH 08/10] docs: Added README."en".md translation via https://github.com/dephraiim/translate-readme --- README.en.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.en.md b/README.en.md index 408549a..74a9cf4 100644 --- a/README.en.md +++ b/README.en.md @@ -23,7 +23,7 @@ _Some simple application scenarios:_ _Download prohibited videos for data analysis, download without watermark for iOS (with[iOS built-in shortcut command APP](https://apps.apple.com/cn/app/%E5%BF%AB%E6%8D%B7%E6%8C%87%E4%BB%A4/id915249334)Cooperate with this project API to realize in-app download or read clipboard download), etc....._ -## 🖥Public site: I'm vulnerable...don't stress test (••᷄ࡇ•᷅ ) +## 🖥Public site: I'm fragile...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倍`。 @@ -94,7 +94,7 @@ _Download prohibited videos for data analysis, download without watermark for iO * * * -## 📦Calling the parsing library: +## 📦Call the parsing library: > 💡PyPi: @@ -176,7 +176,7 @@ local: online: -**_API-V2 documentation:_** +**_API-V2文档:_** online: @@ -200,7 +200,7 @@ online: https://api.douyin.wtf/@evil0ctal/video/7156033831819037994 # Return No Watermark Video Download Response -**_更多演示请查看文档内容......_** +**_For more demos, please check the content of the document..._** ## 💻 Deployment (method 1 Linux) @@ -285,7 +285,8 @@ docker compose pull && docker compose down && docker compose up -d Douyin official API:![](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/blob/main/Screenshots/benchmarks/Douyin_API.png?raw=true) -API of this project:![](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/blob/main/Screenshots/benchmarks/Douyin_API_Douyin_wtf.png?raw=true) +本项目API: +![](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/blob/main/Screenshots/benchmarks/Douyin_API_Douyin_wtf.png?raw=true) TikTok official API:![](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/blob/main/Screenshots/benchmarks/TikTok_API.png?raw=true) From cfc1cfaa5c8d38e5b3140f54de29106b4a95353b Mon Sep 17 00:00:00 2001 From: Evil0ctal Date: Wed, 21 Dec 2022 18:17:14 -0800 Subject: [PATCH 09/10] =?UTF-8?q?=E2=9A=99=EF=B8=8FAdd=20daemon=20for=20`w?= =?UTF-8?q?eb=5Fapp.py`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- daemon/web_app.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 daemon/web_app.service diff --git a/daemon/web_app.service b/daemon/web_app.service new file mode 100644 index 0000000..51b62cb --- /dev/null +++ b/daemon/web_app.service @@ -0,0 +1,14 @@ +[Unit] +Description=www/wwwroot/Douyin_TikTok_Download_API/web_app.py deamon +After=rc-local.service + +[Service] +Type=simple +User=root +Group=root +WorkingDirectory=/www/wwwroot/Douyin_TikTok_Download_API +ExecStart=python3 web_app.py +Restart=always + +[Install] +WantedBy=multi-user.target From b3af2e0402b9257154f4b6b3d23726307387d39e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 22 Dec 2022 02:17:39 +0000 Subject: [PATCH 10/10] docs: Added README."en".md translation via https://github.com/dephraiim/translate-readme --- README.en.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/README.en.md b/README.en.md index 74a9cf4..7f0384d 100644 --- a/README.en.md +++ b/README.en.md @@ -21,7 +21,7 @@ This project is based on[PyWebIO](https://github.com/pywebio/PyWebIO),[FastAPI _Some simple application scenarios:_ -_Download prohibited videos for data analysis, download without watermark for iOS (with[iOS built-in shortcut command APP](https://apps.apple.com/cn/app/%E5%BF%AB%E6%8D%B7%E6%8C%87%E4%BB%A4/id915249334)Cooperate with this project API to realize in-app download or read clipboard download), etc....._ +_Download prohibited videos for data analysis, download without watermark for iOS (with[iOS built-in shortcut command APP](https://apps.apple.com/cn/app/%E5%BF%AB%E6%8D%B7%E6%8C%87%E4%BB%A4/id915249334)Cooperate with the API of this project to realize in-app download or read clipboard download), etc....._ ## 🖥Public site: I'm fragile...don't stress test (••᷄ࡇ•᷅ ) @@ -94,9 +94,9 @@ _Download prohibited videos for data analysis, download without watermark for iO * * * -## 📦Call the parsing library: +## 📦Calling the parsing library: -> 💡PyPi: +> 💡PyPi: Install the parsing library:`pip install douyin-tiktok-scraper` @@ -176,7 +176,7 @@ local: online: -**_API-V2文档:_** +**_API-V2 documentation:_** online: @@ -207,7 +207,7 @@ online: > 💡Tips: It is best to deploy this project to a server in the United States, otherwise strange bugs may appear. - First go to the security group to open ports 8080 (Web) and 8000 (API). -- Search in the Pagoda panel app store`进程守护`or install manually`supervisord`: +- Search in the Pagoda panel app store`进程守护`or manually install`supervisord`: [宝塔面板] @@ -285,8 +285,7 @@ docker compose pull && docker compose down && docker compose up -d Douyin official API:![](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/blob/main/Screenshots/benchmarks/Douyin_API.png?raw=true) -本项目API: -![](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/blob/main/Screenshots/benchmarks/Douyin_API_Douyin_wtf.png?raw=true) +API of this project:![](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/blob/main/Screenshots/benchmarks/Douyin_API_Douyin_wtf.png?raw=true) TikTok official API:![](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/blob/main/Screenshots/benchmarks/TikTok_API.png?raw=true) @@ -310,7 +309,7 @@ Web main interface:
-## 📜 Star history +## 📜 Star History [![Star History Chart](https://api.star-history.com/svg?repos=Evil0ctal/Douyin_TikTok_Download_API&type=Timeline)](https://star-history.com/#Evil0ctal/Douyin_TikTok_Download_API&Timeline)