Hello,
I am using the V2 endpoint on the Academic Product Track and would like to run a search to find all tweets and replies sent from a specific handle over a specific time period. I am looking to use the archive search functionality.
I am specifically searching for all tweets and replies sent from @boeing or @boeingairplanes from 10 March 2019 to 15 March 2019.
It is possible to do this using twarc2?
twarc2 search --archive --start-time "2019-03-10" --end-time "2019-03-15" from:boeing from:boeingairplanes -is:retweet"
Could someone please confirm is this query is correct?
Thanks in advance.
Jason
Yes, twarc can pass any query, see here on how to build them: Search Tweets - How to build a query | Docs | Twitter Developer Platform
your query would be:
(from:boeing OR from:boeingairplanes) -is:retweet
depending on what kind of command line or terminal you’re writing this in, you may have to format the command slightly differently:
For example:
twarc2 search --archive --start-time "2019-03-10" --end-time "2019-03-15" '(from:boeing OR from:boeingairplanes) -is:retweet'
the actual query is between the single quotes ' to make sure it’ll work in case you use a double quote as part of the query, when it’s normally used as part of the command.
1 Like