mirror of
https://github.com/Evil0ctal/Douyin_TikTok_Download_API.git
synced 2025-04-22 15:29:04 +08:00
docs: Added README."zh-TW".md translation via https://github.com/dephraiim/translate-readme
This commit is contained in:
parent
3ac90bc865
commit
1ba1874a6f
@ -109,19 +109,24 @@ python3 web_api.py
|
|||||||
- 調用解析庫
|
- 調用解析庫
|
||||||
|
|
||||||
```python
|
```python
|
||||||
# 将scraper.py拷贝至你的项目目录
|
# pip install DT-Scraper
|
||||||
# 在该项目中导入scraper.py
|
from DT_scraper.scraper import Scraper
|
||||||
from scraper import Scraper
|
|
||||||
|
|
||||||
api = Scraper()
|
api = Scraper()
|
||||||
|
|
||||||
# 解析Douyin视频/图集
|
# 解析Douyin视频/图集
|
||||||
douyin_data = api.douyin(input('在此输入抖音分享口令/链接:'))
|
douyin_data = api.douyin(input('Douyin video URL:'))
|
||||||
# 返回字典
|
# 返回字典
|
||||||
print(douyin_data)
|
print(douyin_data)
|
||||||
# 解析TikTok视频/图集
|
|
||||||
tiktok_data = api.tiktok(input('在此输入TikTok分享口令/链接:'))
|
# Parsing TikTok Videos/Galleries
|
||||||
# 返回字典
|
tiktok_data = api.tiktok(input('TikTok video URL:'))
|
||||||
|
# return dictionary
|
||||||
print(tiktok_data)
|
print(tiktok_data)
|
||||||
|
|
||||||
|
# 使用代理进行解析(Parse using a proxy)
|
||||||
|
api.tiktok(input('TikTok video URL:'), proxies = {'all': 127.0.0.1:2333})
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
- 入口(端口可在config.ini文件中修改)
|
- 入口(端口可在config.ini文件中修改)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user