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
Copy file name to clipboardExpand all lines: README.en.md
+23-2
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ The endpoints with the 🔒 icon in the interface document need to carry the API
31
31
32
32
> Generate API Token
33
33
34
-
The steps to obtain API Token are also very simple, you only need to log in to our user backend[Stay tuned](https://tikhub.io/users/api_keys), then click on the left`API Keys`You can generate your own API Token, and at the same time, you can customize the permissions of the API Token (`Scopes`), you can also set the expiration date of the API Token (`Expire Date`), you can also manually temporarily close the API Token (`Status`)。
34
+
The steps to obtain API Token are also very simple. You only need to log in to our user backend.[Stay tuned](https://tikhub.io/users/api_keys), then click on the left`API Keys`You can generate your own API Token, and at the same time, you can customize the permissions of the API Token (`Scopes`), you can also set the expiration date of the API Token (`Expire Date`), you can also manually temporarily close the API Token (`Status`)。
- use`DouyinAppV1`of`fetch_one_video`The method calls the interface to obtain single video data.
@@ -148,6 +154,21 @@ print(video_data)
148
154
- We have used HTTPX to asynchronously encapsulate most endpoints. If your code is executed synchronously, you can use the following code to prevent asynchronous infection.
149
155
150
156
```python
157
+
# 导入异步io库 | Import asyncio
158
+
import asyncio
159
+
160
+
# 导入tikhub | Import tikhub
161
+
from tikhub import Client
162
+
163
+
# 初始化Client | Initialize Client
164
+
client = Client(base_url="https://api.tikhub.io",
165
+
api_key="YOUR_API_TOKEN",
166
+
proxies=None,
167
+
max_retries=3,
168
+
max_connections=50,
169
+
timeout=60,
170
+
max_tasks=50)
171
+
151
172
# 获取抖音单一视频数据 | Get a single video data from Douyin
0 commit comments