Closed surenjanath closed 3 years ago
I'm facing the same issue.
looks like the /api/music/item_list
endpoint now requires msToken
.
@davidteather any idea how to generate that token?
i ssee u trying something .. the mstoken is same as the xmst. it's stored in local storage
okay so what i've found is if u make normal request using
header = {
'authority': 'm.tiktok.com',
'method': 'GET',
'scheme': 'https',
'accept': '*/*',
'accept-encoding': 'gzip, deflate, br',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36',
'x-tt-params' <MUST INCLUDE THIS>:
}
url = 'https://m.tiktok.com/api/music/item_list/?msToken=....&X-Bogus=....&_signature=....'
r = requests.get(url, headers= header, allow_redirects= True)
r.json()
it works.. it must have the x-tt-params though.. they seemed to convert the musicID and count everything into a hash code :/
when this will be fixed?
I have the same problem now.
Consolidating all discussion about x-tt-params
, user_posts, and anything else related to this update to #695 for easier collaboration
Describe the bug
Expected behavior It was working a couple hours ago and now .. it's not
Error Trace (if any)
Ok only this giving hasMore error. the method by_trending works ... okay by_trending only returning 5 videos alone