Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requests need to be signed now #5

Open
JBGruber opened this issue Nov 15, 2022 · 4 comments
Open

Requests need to be signed now #5

JBGruber opened this issue Nov 15, 2022 · 4 comments

Comments

@JBGruber
Copy link
Owner

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.

@JBGruber
Copy link
Owner Author

Maybe this is the problem: dfreelon/pyktok#6 (comment)

@JBGruber
Copy link
Owner Author

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.

@JBGruber JBGruber changed the title tt_comments not working Requests need to be signed now Feb 14, 2023
@JBGruber
Copy link
Owner Author

This now seems to affect the video download too.

@JBGruber
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant