snscrape icon indicating copy to clipboard operation
snscrape copied to clipboard

twitterscraper - collect tweets without specifying word

Open clpalomi opened this issue 2 years ago • 1 comments

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?

clpalomi avatar Jun 29 '23 19:06 clpalomi

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).

JustAnotherArchivist avatar Jun 29 '23 19:06 JustAnotherArchivist