mahrtayyab / tweety

Twitter Scraper
480 stars 64 forks source link

how to crawl tweets for a specified time period? #161

Closed elberttreble closed 8 months ago

elberttreble commented 9 months ago

May I ask what kind of settings can be used to crawl tweets for a specified time period from an account? Because now it seems that the number of crawled tweets can only be controlled by setting the page. Or, how can I see on a Twitter webpage where a tweet is located?

Thanks~

mahrtayyab commented 9 months ago

Use twitter advance search

mahrtayyab commented 8 months ago

Like

...

tweets = client.search("(from:elonmusk until:2023-12-31 since:2022-01-01)")