You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install the parsing library:`pip install douyin-tiktok-scraper`
134
134
@@ -149,7 +149,7 @@ asyncio.run(hybrid_parsing(url=input("Paste Douyin/TikTok/Bilibili share URL her
149
149
150
150
## 🗺️Supported submission formats:
151
151
152
-
> 💡Tip: Including but not limited to the following examples. If you encounter link parsing failure, please open a new one.[issue](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/issues)
152
+
> 💡Tip: Including but not limited to the following examples, if you encounter link parsing failure, please open a new one[issue](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/issues)
> 💡Tip: It is best to deploy this project to a server in the United States, otherwise strange BUGs may occur.
238
+
> 💡Tips: It is best to deploy this project to a server in the United States, otherwise strange BUGs may occur.
239
239
240
-
Recommended for everyone to use[Digitalocean](https://www.digitalocean.com/)servers, mainly because they are free.
240
+
Recommended for everyone to use[Digitalocean](https://www.digitalocean.com/)server, because you can have sex for free.
241
241
242
242
Use my invitation link to sign up and you can get a $200 credit, and when you spend $25 on it, I can also get a $25 reward.
243
243
@@ -247,61 +247,111 @@ My invitation link:
247
247
248
248
> Use script to deploy this project with one click
249
249
250
+
- This project provides a one-click deployment script that can quickly deploy this project on the server.
251
+
- The script was tested on Ubuntu 20.04 LTS. Other systems may have problems. If there are any problems, please solve them yourself.
250
252
- Download using wget command[install.sh](https://raw.githubusercontent.com/Evil0ctal/Douyin_TikTok_Download_API/main/bash/install.sh)to the server and run
- When the project is updated, ensure that the update script is executed in the virtual environment and all dependencies are updated. Enter the project bash directory and run update.sh:
> 💡Tip: Docker deployment is the simplest deployment method and is suitable for users who are not familiar with Linux. This method is suitable for ensuring environment consistency, isolation and quick setup.
277
+
> Please use a server that can normally access Douyin or TikTok, otherwise strange BUG may occur.
Before you begin, make sure Docker is installed on your system. If you haven't installed Docker yet, you can install it from[Docker official website](https://www.docker.com/products/docker-desktop/)Download and install.
282
+
283
+
### Step 1: Pull the Docker image
276
284
277
-
- Just leave the config.ini and docker-compose.yml files
278
-
- Run the command to let the container run in the background
285
+
First, pull the latest Douyin_TikTok_Download_API image from Docker Hub.
Can be replaced if needed`latest`Label the specific version you need to deploy.
292
+
293
+
### Step 2: Run the Docker container
285
294
286
-
```yaml
287
-
docker logs -f douyin_tiktok_download_api
295
+
After pulling the image, you can start a container from this image. Here are the commands to run the container, including basic configuration:
296
+
297
+
```bash
298
+
docker run -d --name douyin_tiktok_api -p 80:80 evil0ctal/douyin_tiktok_download_api
288
299
```
289
300
290
-
- Delete container
301
+
Each part of this command does the following:
302
+
303
+
-`-d`: Run the container in the background (detached mode).
304
+
-`--name douyin_tiktok_api `: Name the container`douyin_tiktok_api `。
305
+
-`-p 80:80`: Map port 80 on the host to port 80 of the container. Adjust the port number based on your configuration or port availability.
306
+
-`evil0ctal/douyin_tiktok_download_api`: The name of the Docker image to use.
291
307
292
-
```yaml
293
-
docker rm -f douyin_tiktok_download_api
308
+
### Step 3: Verify the container is running
309
+
310
+
Check if your container is running using the following command:
311
+
312
+
```bash
313
+
docker ps
294
314
```
295
315
296
-
- renew
316
+
This will list all active containers. Find`douyin_tiktok_api `to confirm that it is functioning properly.
317
+
318
+
### Step 4: Access the App
319
+
320
+
Once the container is running, you should be able to pass`http://localhost`Or API client access Douyin_TikTok_Download_API. Adjust the URL if a different port is configured or accessed from a remote location.
321
+
322
+
### 可选:自定义Docker命令
297
323
298
-
```yaml
299
-
docker-compose pull && docker-compose down && docker-compose up -d
324
+
For more advanced deployments, you may wish to customize Docker commands to include environment variables, volume mounts for persistent data, or other Docker parameters. Here is an example:
325
+
326
+
```bash
327
+
docker run -d --name douyin_tiktok_api -p 80:80 \
328
+
-v /path/to/your/data:/data \
329
+
-e MY_ENV_VAR=my_value \
330
+
evil0ctal/douyin_tiktok_download_api
300
331
```
301
332
302
-
## ❤️ Contributor
333
+
-`-v /path/to/your/data:/data`: Change the`/path/to/your/data`Directory mounted to the container`/data`Directory for persisting or sharing data.
334
+
-`-e MY_ENV_VAR=my_value`: Set environment variables within the container`MY_ENV_VAR`, whose value is`my_value`。
335
+
336
+
### Configuration file modification
337
+
338
+
Most of the configuration of the project can be found in the following directories:`config.yaml`File modification:
When you need to stop and remove a container, use the following commands:
347
+
348
+
```bash
349
+
# Stop
350
+
docker stop douyin_tiktok_api
351
+
352
+
# Remove
353
+
docker rm douyin_tiktok_api
354
+
```
305
355
306
356
## 📸Screenshot
307
357
@@ -339,7 +389,8 @@ Web main interface:
339
389
340
390
[](https://star-history.com/#Evil0ctal/Douyin_TikTok_Download_API&Timeline)
0 commit comments