File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -48,24 +48,33 @@ Import
4848```
4949from TikTokAPI import TikTokAPI
5050```
51+ Get your keys from Cookie. You can get them from the Applications tab in Chrome developer console.
52+ By default it used hardcoded values which may not work after some time.
53+ The keys to extract are ` s_v_web_id ` and ` tt_webid `
54+ ```
55+ cookie = {
56+ "s_v_web_id": "<your_key>",
57+ "tt_webid": "<your_key>"
58+ }
59+ ```
5160Get the most trending Videos on TikTok
5261```
53- api = TikTokAPI()
62+ api = TikTokAPI(cookie=cookie )
5463retval = api.getTrending(count=5)
5564```
5665Get a user by name
5766```
58- api = TikTokAPI()
67+ api = TikTokAPI(cookie=cookie )
5968user_obj = api.getUserByName("fcbarcelona")
6069```
6170Get videos of a user
6271```
63- api = TikTokAPI()
72+ api = TikTokAPI(cookie=cookie )
6473user_videos = api.getVideosByUserName("fcbarcelona")
6574```
6675Get likes of a user
6776```
68- api = TikTokAPI()
77+ api = TikTokAPI(cookie=cookie )
6978user_videos = api.getLikesByUserName("fcbarcelona")
7079```
7180
Original file line number Diff line number Diff line change 66setuptools .setup (
77 name = "PyTikTokAPI" ,
88 packages = setuptools .find_packages (),
9- version = "0.0.4 " ,
9+ version = "0.0.5 " ,
1010 license = 'MIT' ,
1111 author = "Avilash Kumar" ,
1212
You can’t perform that action at this time.
0 commit comments