traktok
traktok copied to clipboard
Requests need to be signed now
Requests get 403 error messages, even with fresh tokens. The curl call on the website doesn't look different, but I also can't call it from within R.
Maybe this is the problem: https://github.com/dfreelon/pyktok/issues/6#issuecomment-1320406439
The missing piece is currently the X-Bogus
parameter in the query to https://www.tiktok.com/api/comment/list/?
. This parameter needs to be correct, or the api will not return any data. The repo over here seems to have already solved that problem.
This now seems to affect the video download too.
It does not affect the video download. Other functions had to be deprecated. It looks like X-Bogus
is auto-generated from the request itself, which means one would have to reverse engineer the function that generates this parameter. The tiktok-signature repo looks as if it could solve the issue, but I did not get it to work.