Open smithperez opened 1 year ago
I'll have to look into this more, but this problem arises because of how TikTok presents videos if you go to a tag's page.
TikTokPy simply visits the tag page to grab videos, but this means its subject to however TikTok wants to present the videos. TikTok decides video order by its algorithm, which means the videos aren't sorted by recent or even popular, just by what TikTok thinks you'd want to see. And because TikTokPy doesn't log in, this is a generic suggestion that doesn't change.
It's possible there's some API calls I could make to get recent videos tagged with a challenge, but at the moment I'm unsure if this is something I can do.
Hi i have been using the code above to get a large array of tiktoks back however it throws an error:
self._api.video(video.id) for video in converted.item_list
For further information visit https://errors.pydantic.dev/2.0.1/v/missing
itemInfo.itemStruct.video.downloadAddr
Field required [type=missing, input_value={'cover': 'https://p77-si...meInfo': {}, 'width': 0}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.0.1/v/missing
I'm having the same issue as @smithperez. Wish there was a way around this, but I'm not sure how. I guess it is not possible to sort videos on the tag page.
I'm having the same issue as @smithperez. Wish there was a way around this, but I'm not sure how. I guess it is not possible to sort videos on the tag page.
Yeah unless TikTok creates a way to sort on a tag page, this gets very complicated to do. I've got some ideas for how to grab random videos tagged with something, but I haven't had a chance to try it out yet.
I have been testing this API and notice that all the data returned is the same. I have been playing around with the challenge method at different periods of time and I notice that when you use a hashtag to gather some data and you use it a second time, it will return the same data as the first time regardless of the time lapse between the 2 requests.
Just in case, you can find the code attached below.