Skip to content

Commit 1e0e110

Browse files
authored
Update README.md
1 parent adc731d commit 1e0e110

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 待更新 - 2023年4月27日
1+
# 更新 - 2023年6月15日
22

33
<div align="center">
44
<h1><a href="https://pypi.org/project/tikhub">TikHub_API</a></h1>
@@ -13,15 +13,15 @@
1313
<p>接口文档中带有🔒的接口需要在请求头中携带Token才可调用。</p>
1414
<p>调用这些接口会使用你账户中的剩余请求次数!</p>
1515

16+
1617
```python
17-
from tikhub.__main__ import *
18+
from tikhub import TikTokAPI, DouyinAPI
1819

1920
# 初始化(Initialization)
20-
api = API(
21-
email='EMAIL@EXAMPLE.COM',
22-
password='PASSWORD',
23-
proxy=None,
24-
)
21+
token = input('Please enter your TikTok token: ')
22+
tiktok_api = TikTokAPI(token)
23+
douyin_api = DouyinAPI(token)
24+
2525
```
2626

2727
<hr>
@@ -44,16 +44,20 @@ api = API(
4444

4545
> 查看[test.py](https://github.com/TikHubIO/TikHub_PyPi/blob/main/test/test.py)
4646
47-
- Install
47+
- 第一步/first step: 安装/Install
4848

4949
```bash
5050
pip install tikhub
5151
```
5252

5353
- Usage
5454

55-
```python
56-
from tikhub.__main__ import *
55+
```第二步/second step: 初始化/Initialization
56+
from tikhub import TikTokAPI, DouyinAPI
57+
token = input('Please enter your TikTok token: ')
58+
tiktok_api = TikTokAPI(token)
59+
douyin_api = DouyinAPI(token)
60+
5761
5862
5963
async def async_test() -> None:

0 commit comments

Comments
 (0)