-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix user.videos crawling issue #1141
Conversation
Applying this patch locally fixed the issue I was experiencing with the 6.3.0 release. Thank you! |
This fix is breaking the TikTok-Api/TikTokApi/api/user.py Lines 134 to 136 in 7101654
for video in resp.get("itemList", []):
yield self.parent.video(data=video)
found += 1
if found == count:
break Still the |
Same! |
Same here, tried with hashtag.py got limit on 35-40..
but in hashtag.py is already the changed version of yours, but doesnt crawl more.. /TikTokApi/api/hashtag.py
So for hashtag doesn't the 35 multiples works.. just fetches 35 and stops.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Fix user.videos crawling issue (#1141) * added support for statsV2 (#1143) * Restored functionality for download bytes method (#1174) * [PlayList] Add playlist to the user scrapy api (#1177) * bump to 6.4.0 --------- Co-authored-by: Phat Luu Huynh <lhphat.dev@gmail.com> Co-authored-by: ekorian <korian.edeline@gmail.com> Co-authored-by: Ben Steel <bendavidsteel@gmail.com> Co-authored-by: wu5bocheng <wu5bocheng@gmail.com>
I noticed this after updating to 6.4.0 from 6.3.0. Does requesting videos in increments of 35 cause any additional requests (instead of requesting just 5 videos)? @mi01 |
This causes no additional request AFAIK. |
Issue: Can't crawl videos from
user.videos
more than 35 videos (even if usingcursor
).The code I used for testing:
Before modifying the
videos
method:After modifying the
videos
method:Please check this