JustAnotherArchivist / snscrape

A social networking service scraper in Python
GNU General Public License v3.0
4.31k stars 698 forks source link

twitterscraper - collect tweets without specifying word #990

Open clpalomi opened 1 year ago

clpalomi commented 1 year ago

Is it possible to use TwitterSearchScraper to collect a number of tweets just setting parameters like tweet.lang or tweet.place.country, without specifying a word as an argument?

JustAnotherArchivist commented 1 year ago

Yes, e.g. lang:en searches for English tweets (according to Twitter's detection, which isn't always accurate). Some filters can't be used on their own; adding (filter:safe OR -filter:safe) is one possible workaround for that. Refer to https://github.com/igorbrigadir/twitter-advanced-search for available filters (but some of these don't work anymore).