vladkens / twscrape

2024! Twitter API scrapper with authorization support. Allows you to scrape search results, User's profiles (followers/following), Tweets (favoriters/retweeters) and more.
https://pypi.org/project/twscrape/
MIT License
784 stars 102 forks source link

The search limit don't work and also the code return some tweets out of context ( not containing the keyword specified) #150

Closed AbdellahAmini closed 2 months ago

AbdellahAmini commented 3 months ago

i enter : await gather(api.search(search_query, limit=10, kv={"product": "Latest"}))

but i still get a random number of tweets (more than 10) i want just the 10 latest in order

atesahmet0 commented 3 months ago

I have the same problem

vladkens commented 2 months ago

Limit works in a specific way. Details here:

AbdellahAmini commented 2 months ago

I'm using the API to fetch the latest 10 tweets but frequently receive additional, irrelevant tweets or ads. This inclusion distorts the context of my intended search results.

Could you suggest adjustments to the API call to solve this ?