Skip to content

Commit

Permalink
Added new signature
Browse files Browse the repository at this point in the history
  • Loading branch information
davidteather committed Aug 27, 2019
1 parent 2709552 commit 6f31677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tiktokbot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Json Response https://m.tiktok.com/share/item/list?id=&type=5&count=48&minCursor=0&maxCursor=0&_signature=Ajk97hAbXtYLdUf7zgjlDAI5Pf
# Json Response https://m.tiktok.com/share/item/list?id=&type=5&count=48&minCursor=0&maxCursor=0&_signature=z9nIxxAWkszGlbLSXGTDqM.ZyN
# obj -> body -> itemListData -> itemListData[i] -> itemInfos -> video -> urls[0] gives downloadable url
import requests
import random
Expand Down Expand Up @@ -29,7 +29,7 @@ def sig_generator(stringLength=26):
val = True
while val is True:
url = "https://m.tiktok.com/share/item/list?id=&type=5&count=" + \
str(count) + "&minCursor=0&maxCursor=0&_signature=" + "5GW1lhAbuJftKc-DE.IL-ORltY"
str(count) + "&minCursor=0&maxCursor=0&_signature=" + "W5cHbxAVBvNS2316KIvp21uXB3"
r = requests.get(url, headers={"authority": "m.tiktok.com", "method": "GET", "path": url.split("https://m.tiktok.com")[0], "scheme": "https", "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3",
"accept-encoding": "gzip, deflate, br", "accept-language": "en-US,en;q=0.9", "cache-control": "max-age=0", "upgrade-insecure-requests": "1",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36"})
Expand Down

0 comments on commit 6f31677

Please sign in to comment.