Hi,
Is it possible to apply language filter?
I’ve tried several options and they don’t work.
twarc2 search “bolsonaro OR lula” lang:pt --start-time 2022-09-26 --end-time 2022-10-05 --archive lula_bolso2.jsonl
twarc2>twarc2 search (bolsonaro OR lula) lang:pt --start-time 2022-09-26 --end-time 2022-10-05 --archive lula_bolso2.jsonl
twarc2 search (“bolsonaro OR lula” lang:pt) --start-time 2022-09-26 --end-time 2022-10-05 --archive lula_bolso2.jsonl
Saludos
The quotes surrounding the query are wrong, and also when using OR you must also use parentheses to enclose the keywords, like this: Search Tweets - How to build a query | Docs | Twitter Developer Platform
twarc2 search "(bolsonaro OR lula) lang:pt" ...
If there are meant to be quotes inside the query, those have to be escaped like this:
twarc2 search "(\"jair bolsonaro\" OR \"Simone tebet\")" ...
This is because of how command line utilities work.
Thanks. I try it when a new period starts. 
Barri
1 Like