twintproject / twint

An advanced Twitter scraping & OSINT tool written in Python that doesn't use Twitter's API, allowing you to scrape a user's followers, following, Tweets and more while evading most API limitations.
MIT License
15.81k stars 2.73k forks source link

I want to only crawl English tweets, how to filter other types of language #758

Closed RachelLYY closed 4 years ago

RachelLYY commented 4 years ago

Issue Template

Description of Issue

I want to crawl only English tweets, and I see twitter provides api of detect language, can twint use twitter api, or detect language?

Environment Details

Using Windows, Running this in Anaconda.

benzaked commented 4 years ago

you can just do it with c.Lang = "en" for example : import twint c = twint.Config() c.Lang = "en" twint.run.Search(c)

RachelLYY commented 4 years ago

you can just do it with c.Lang = "en" for example : import twint c = twint.Config() c.Lang = "en" twint.run.Search(c)

Thanks a lot!