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.75k stars 2.72k forks source link

Cannot extract Farsi tweets #598

Closed sinagh72 closed 4 years ago

sinagh72 commented 4 years ago

I cannot retrieve data with the following command: twint -s منزل --year 2019 -o file.csv --csv --email --phone

I mean, is it possible to retrieve data by Farsi or Arabic words, hashtags and so on?

pielco11 commented 4 years ago

Hi @sinagh72

yes, that's possible to get tweets is almost any language I guess. I tried your query and I got a couple of tweets

sinagh72 commented 4 years ago

It seems working, but why the time interval does not working? this is my code:

c = twint.Config() c.Search = "ایران" c.Since = "2019-01-01" c.Untill = "2019-12-08" c.Index_tweets ="irantweets" c.Elasticsearch = "http://localhost:9200" twint.run.Search(c)

image

pielco11 commented 4 years ago

May you expand a result and show me the raw json part? (just expand one and click on json)

sinagh72 commented 4 years ago

my problem is solved. thanks