🐛 Fix Docker
This commit is contained in:
commit
79169a3533
3 changed files with 28 additions and 27 deletions
29
Dockerfile
29
Dockerfile
|
|
@ -1,17 +1,18 @@
|
|||
# Credits
|
||||
# https://github.com/jw-star
|
||||
FROM python:3.10.5-slim-buster
|
||||
MAINTAINER evil0ctal (https://hub.docker.com/repository/docker/evil0ctal/douyin_tiktok_download_api/general)
|
||||
RUN apt-get update
|
||||
RUN apt-get -y install gcc
|
||||
RUN apt-get -y install nodejs
|
||||
RUN apt-get -y install npm
|
||||
RUN npm install -y md5
|
||||
COPY . /app
|
||||
RUN pip3 --no-cache-dir install --user -r /app/requirements.txt
|
||||
WORKDIR /app
|
||||
# -u print打印出来
|
||||
FROM ubuntu:jammy
|
||||
MAINTAINER jwstar
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN chmod +x start.sh
|
||||
RUN apt-get -y update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
python3.11 python3-pip python3.11-dev nodejs
|
||||
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
RUN pip3 --no-cache-dir install --user -r /app/requirements.txt
|
||||
|
||||
|
||||
RUN chmod +x start.sh && \
|
||||
apt-get autoremove -y \
|
||||
&& apt-get remove -y python3-pip
|
||||
|
||||
CMD ["./start.sh"]
|
||||
|
|
|
|||
20
README.en.md
20
README.en.md
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
[English](./README.en.md)\|[Simplified Chinese](./README.md)
|
||||
|
||||
🚀「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.
|
||||
🚀「Douyin_TikTok_Download_API」is an out-of-the-box high-performance asynchronous[Tik Tok](https://www.douyin.com)\|[TikTok](https://www.tiktok.com)Data crawling tool, supports API call, online batch analysis and download.
|
||||
|
||||
[](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)
|
||||
|
||||
|
|
@ -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 the API of this project 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 (••᷄ࡇ•᷅ )
|
||||
|
||||
> **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.
|
||||
|
||||
|
|
@ -81,11 +81,11 @@ _Download prohibited videos for data analysis, download without watermark for iO
|
|||
|
||||
- Douyin (overseas version of Douyin: TikTok) video/picture analysis
|
||||
- Batch analysis on the web page (supports Douyin/TikTok mixed submission)
|
||||
- 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)
|
||||
- Batch download of non-watermarked 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 ([Tikhub-opy](https://api.tikhub.io/docs) 支持抖音/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-opy](https://api.tikhub.io/docs)Support Douyin/TikTok)
|
||||
- Parse all comment information in the video ([Tikhub-opy](https://api.tikhub.io/docs)Support Douyin/TikTok)
|
||||
|
||||
* * *
|
||||
|
|
@ -94,15 +94,15 @@ _Download prohibited videos for data analysis, download without watermark for iO
|
|||
|
||||
> 💡Suggestions or PRs are welcome to this repository ♪(・ω・)ノ)
|
||||
|
||||
- [ ] Write an asynchronous downloader on the desktop to achieve local batch download
|
||||
- [ ] Write an asynchronous downloader on the desktop to realize 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`
|
||||
|
||||
|
|
@ -212,7 +212,7 @@ online:<https://api.tikhub.io/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.
|
||||
|
||||
|
|
@ -270,7 +270,7 @@ You can stop the api service by running: systemctl stop web_api.service
|
|||
- web service:`systemctl enable/disable web_app.service`
|
||||
- api service:`systemctl enable/disable web_api.service`
|
||||
|
||||
> update project
|
||||
> update item
|
||||
|
||||
- `cd /www/wwwroot/Douyin_TikTok_Download_API/bash`
|
||||
- `sudo sh update.sh`
|
||||
|
|
|
|||
4
start.sh
4
start.sh
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
python web_app.py &
|
||||
python web_api.py
|
||||
python3 web_app.py &
|
||||
python3 web_api.py
|
||||
|
|
|
|||
Loading…
Reference in a new issue