File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 1- # To be updated - April 27, 2023
1+ # 更新 - 2023年6月15日
22
33<div align =" center " >
44<h1 ><a href =" https://pypi.org/project/tikhub " >TikHub_API</a ></h1 >
1414<p >调用这些接口会使用你账户中的剩余请求次数!</p >
1515
1616``` python
17- from tikhub.__main__ import *
17+ from tikhub import TikTokAPI, DouyinAPI
1818
1919# 初始化(Initialization)
20- api = API(
21- email = ' EMAIL@EXAMPLE.COM' ,
22- password = ' PASSWORD' ,
23- proxy = None ,
24- )
20+ token = input (' Please enter your TikTok token: ' )
21+ tiktok_api = TikTokAPI(token)
22+ douyin_api = DouyinAPI(token)
23+
2524```
2625
2726<hr >
@@ -44,16 +43,20 @@ api = API(
4443
4544> Check[ test.py] ( https://github.com/TikHubIO/TikHub_PyPi/blob/main/test/test.py )
4645
47- - Install
46+ - The first step/first step: installation/ Install
4847
4948``` bash
5049pip install tikhub
5150```
5251
5352- Usage
5453
55- ``` python
56- from tikhub.__main__ import *
54+ ``` 第二步/second step: 初始化/Initialization
55+ from tikhub import TikTokAPI, DouyinAPI
56+ token = input('Please enter your TikTok token: ')
57+ tiktok_api = TikTokAPI(token)
58+ douyin_api = DouyinAPI(token)
59+
5760
5861
5962async def async_test() -> None:
You can’t perform that action at this time.
0 commit comments