-
Notifications
You must be signed in to change notification settings - Fork 42
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
TikTokApi response breaks tool #28
Comments
Same here. Any solutions? |
Any updates to this? |
Judging from the content of the other issues it looks like it may be a result of running in headless mode (i.e. no browser opens up while the tool is running). Adding the |
problem is count = 1000 tiktok new limit to count is 35 change and it works |
Interesting! Does passing |
It fixes it for me, I'm going to suggest changing the default to We should look to add pagination of results, or some date-based bifurcation once #29 is addressed. |
TikTok appears to have limited the number of posts that can be returned for a single hashtag search to 35 (e.g. bellingcat/tiktok-hashtag-analysis#28). Similar to how the `User.liked` method works, I set the batch size to 35 videos per request.
This PR (davidteather/TikTok-Api#1126) for the TikTokApi scraper should fix this issue, but in the meantime I'll approve Galen's fix. |
TikTok appears to have limited the number of posts that can be returned for a single hashtag search to 35 (e.g. bellingcat/tiktok-hashtag-analysis#28). Similar to how the `User.liked` method works, I set the batch size to 35 videos per request.
* Add 'executable_path' field to the 'api.create_sessions()' method (#1136) * Fixed retries loop (#1133) * Add option to select which browser playwright uses (#1129) * add browser selection option to create_sessions method * fix spelling typo --------- Co-authored-by: David Teather <[email protected]> * Update hashtag.py (#1126) TikTok appears to have limited the number of posts that can be returned for a single hashtag search to 35 (e.g. bellingcat/tiktok-hashtag-analysis#28). Similar to how the `User.liked` method works, I set the batch size to 35 videos per request. * add executable path to str * bump ver --------- Co-authored-by: kkordik <[email protected]> Co-authored-by: ekorian <[email protected]> Co-authored-by: Will Howes <[email protected]> Co-authored-by: Tristan Lee <[email protected]>
The TikTok API initially returns a Warning, and then Errors with an unexpected status code 10201, resulting in no posts found:
The
None -> TikTok returned an empty response
error is discussed variously here: davidteather/TikTok-Api#1090 davidteather/TikTok-Api#1097 davidteather/TikTok-Api#1104Error 10201 is discussed here and may be "invalid entity or invalid parameter". Another post suggests it is related to CAPTCHA.
This is probably the same error as davidteather/TikTok-Api#1069 but running in headed mode (which happens automatically in this tool) does not seem to solve the issue.
The text was updated successfully, but these errors were encountered: