|
1 |
| -# Update - June 15, 2023 |
2 |
| - |
3 | 1 | <div align="center">
|
4 |
| -<h1><a href="https://pypi.org/project/tikhub">TikHub_API</a></h1> |
| 2 | +<h1><a href="https://pypi.org/project/tikhub">TikHub-API-Python-SDK</a></h1> |
5 | 3 | <a href="https://github.com/TikHubIO/TikHub-API-Python-SDK/blob/main/README.en.md">English</a> | <a href="https://github.com/TikHubIO/TikHub-API-Python-SDK/blob/main/README.md">简体中文</a>
|
6 | 4 | </div>
|
7 |
| -<h4>简介</h4> |
8 |
| -<p><a href="https://tikhub.io">TikHub</a>是抖音与TikTok非官方的RESTful API平台。</p> |
9 |
| -<p>我们提供的API只能获取公开数据,即任何人都可以通过浏览器及APP等访问抖音,TikTok,小红书以获取它们。</p> |
10 |
| -<p>如果您有任何建议或者需求,请联系我们,更多的功能正在开发中,敬请期待!</p> |
11 |
| -<hr> |
12 |
| -<h4>鉴权</h4> |
13 |
| -<p>接口文档中带有🔒的接口需要在请求头中携带Token才可调用。</p> |
14 |
| -<p>调用这些接口会使用你账户中的剩余请求次数!</p> |
15 | 5 |
|
16 |
| -<hr> |
17 |
| -<h4>购买</h4> |
18 |
| -<p>Website(🚧ing): <a href="https://tikhub.io">tikhub.io</a></p> |
19 |
| -<p>API Document: <a href="https://api.tikhub.io">api.tikhub.io</a></p> |
20 |
| -<p>Discord(Support): <a href="https://discord.gg/kk23BGeYrJ">https://discord.gg/kk23BGeYrJ</a></p> |
21 |
| -<p>Github: <a href="https://github.com/TikHubIO">https://github.com/TikHubIO</a></p> |
22 |
| -< p>Email: < a href= "mailto:[email protected]"> [email protected]</ a></ p> |
23 |
| -<hr> |
24 |
| -<h4>公告</h4> |
25 |
| -<p>TikHub的API将使用<strong>免费加付费</strong>的形式运行。</p> |
26 |
| -<p>登录后,通过签到可以随机获得50-100次API请求,每24小时可签到一次。</p> |
27 |
| -<hr> |
| 6 | +#### Introduction |
| 7 | + |
| 8 | +[TikTok](https://tikhub.io/)It is an All in one RESTful API platform. |
28 | 9 |
|
29 |
| -## Usage example |
| 10 | +The API we provide can only obtain public data, that is, anyone can access Douyin, TikTok, and Xiaohongshu through browsers and APPs to obtain them. |
30 | 11 |
|
31 |
| -> Check[test.py](https://github.com/TikHubIO/Douyin-TikTok-API-Python-SDK/blob/main/test/test.py) |
| 12 | +If you have any suggestions or needs, please contact us. More features are under development, so stay tuned! |
32 | 13 |
|
33 |
| -- Step 1: Installation |
| 14 | +* * * |
34 | 15 |
|
35 |
| -```bash |
36 |
| -pip install tikhub |
37 |
| -``` |
| 16 | +#### Authentication |
38 | 17 |
|
39 |
| -- Step 2: Initialization |
| 18 | +The interface with 🔒 in the interface document needs to carry Token in the request header before it can be called. |
40 | 19 |
|
41 |
| -```python |
42 |
| -from tikhub import TikTokAPI, DouyinAPI |
| 20 | +Calling these interfaces will use the remaining number of requests in your account! |
43 | 21 |
|
44 |
| -token = "请在此填写您的token/秘钥" |
45 |
| -tiktok_api = TikTokAPI(token) |
46 |
| -douyin_api = DouyinAPI(token) |
| 22 | +* * * |
47 | 23 |
|
48 |
| -``` |
| 24 | +#### Buy |
49 | 25 |
|
50 |
| -- Step 3: Call the method |
| 26 | +Website(🚧ing):[tikhub.io](https://tikhub.io/) |
51 | 27 |
|
52 |
| -```python |
53 |
| -import asyncio |
54 |
| - |
55 |
| -from tikhub import TikTokAPI, DouyinAPI |
| 28 | +API Document:[api.tikhub.io](https://api.tikhub.io/) |
56 | 29 |
|
57 |
| -if __name__ == '__main__': |
58 |
| - token ="请在此填写您的token/秘钥" |
| 30 | +Discord(Support):<https://discord.gg/kk23BGeYrJ> |
59 | 31 |
|
60 |
| - tiktok_api = TikTokAPI(token) |
61 |
| - douyin_api = DouyinAPI(token) |
| 32 | +Github:<https://github.com/TikHubIO> |
62 | 33 |
|
63 |
| - tiktok_video_url = "https://www.tiktok.com/@evil0ctal/video/7201344014984006954" |
| 34 | + |
64 | 35 |
|
65 |
| - r = None |
| 36 | +* * * |
66 | 37 |
|
67 |
| - # 读取用户信息/Read user information |
68 |
| - r = asyncio.run(tiktok_api.get_user_info()) |
69 |
| - print(r) |
| 38 | +#### announcement |
70 | 39 |
|
71 |
| - tiktok_video_url = 'https://www.tiktok.com/@evil0ctal/video/7156033831819037994' |
72 |
| - tiktok_music_url = 'https://www.tiktok.com/music/original-sound-7128362040359488261' |
| 40 | +TikHub’s API will use**Free plus paid**run in the form. |
73 | 41 |
|
74 |
| - # 解析单一tiktok视频/Parse a single tiktok video |
75 |
| - # r = asyncio.run(tiktok_api.get_tiktok_video_data(tiktok_video_url)) |
76 |
| - # print(r) |
77 |
| -``` |
| 42 | +After logging in, you can get 50-100 API requests randomly by checking in, and you can check in once every 24 hours. |
0 commit comments