twikit icon indicating copy to clipboard operation
twikit copied to clipboard

Unable to retrieve tweets for Hashtags on the Latest page.

Open Rohit7Patil opened this issue 7 months ago • 2 comments

Hi,

For the past 3 months I was able retrieve thousands of tweets based on a particular hashtag from the Latest Page.

query = f"#{tag.lstrip('#')} since:{start} until:{end}" tweets = await client.search_tweet(query, product="Latest")

Currently I'm getting constantly hit with 404 errors for the same query.

could you please let me know what's the problem?

Rohit7Patil avatar May 21 '25 04:05 Rohit7Patil

I have same problem, semi-random 404s with no additional message when invoking search_tweet with even simpler query, just from:username. What is interesting is that it seems that failure is persistent across script run.

What I mean by that is when I execute the script, and get 404, then it's 404 for given cookie indefinitely. But when I restart the script, client populated with the same cookie now works fine.

omicronns avatar Jul 16 '25 16:07 omicronns

For me recreating Client object in case of 404 is a workaround.

omicronns avatar Jul 16 '25 20:07 omicronns