How to scrape tweets with english language only in twint?

512 Views Asked by At

I have tried the following syntax:

c>lang = 'en'

But it still fetches non-english tweets as well.

1

There are 1 best solutions below

0
On

Try to include lang:en in the Search object.

c = twint.Config()
c.Search = " lang:en vegetables"
twint.run.Search(c)