Skip to content

Commit 03510f9

Browse files
docs: Added README."en".md translation via https://github.com/dephraiim/translate-readme
1 parent 1e0e110 commit 03510f9

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

README.en.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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>
@@ -14,14 +14,13 @@
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
5049
pip 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
5962
async def async_test() -> None:

0 commit comments

Comments
 (0)