TikTok-Api icon indicating copy to clipboard operation
TikTok-Api copied to clipboard

Limited extracted hashtag videos

Open MohamedZribi opened this issue 2 years ago • 4 comments

Hi...so I'm trying to scrape video ids of a certain hashtag.....there are unlimited videos of the said hashtag on Tiktok but when using the API....after changing the count in Hashtag.py to say 10000 for example.....I only get slightly less than 1000 ids...is there some limit set by Tiktok or maybe a certain parameter I should change?

MohamedZribi avatar Mar 03 '22 18:03 MohamedZribi

it has been my experience that count only really loosley works in the search methods. i'd just get the generator with more than u need and then use a for loop or something to iterate thru it however many times you want. I've also had it happen where certain searches yield one result that for some reason doesnt work w the api and then every other result after is messed up too becuase you cant really iterate past the messed up one. that could be why yours is returning so few results. for example, that has happened to me w the 12th or 13th video if u search videos w the keyword adhd. good luck

benostarzec avatar Mar 03 '22 21:03 benostarzec

it has been my experience that count only really loosley works in the search methods. i'd just get the generator with more than u need and then use a for loop or something to iterate thru it however many times you want. I've also had it happen where certain searches yield one result that for some reason doesnt work w the api and then every other result after is messed up too becuase you cant really iterate past the messed up one. that could be why yours is returning so few results. for example, that has happened to me w the 12th or 13th video if u search videos w the keyword adhd. good luck

Thanks for your reply....I already set the count to more than I need...still under the 1k mark and it varies for each keyword...btw tried the "adhd" keyword with my script....seems like I can get slightly under the 1k videos as well. But I need higher volumes so I'm still trying to come up with a solution.

MohamedZribi avatar Mar 03 '22 21:03 MohamedZribi

Are you using the cursor parameter?

Popesites avatar Mar 04 '22 19:03 Popesites

Are you using the cursor parameter?

It is set by default to match the offset, how should I set it?

MohamedZribi avatar Mar 04 '22 20:03 MohamedZribi

@MohamedZribi Have you solved the problem? I'm facing the video data collection through hashtags too.

kornosk avatar Nov 14 '22 16:11 kornosk

This is a TikTok web limit as far as I know

davidteather avatar Aug 08 '23 22:08 davidteather

Any ideas on getting around this for grabbing 1000+ on a specific hashtag? Hacky solutions would be just fine.

binaryplatitude avatar Sep 22 '23 19:09 binaryplatitude