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

[Question] Does search ignore retweets? #848

Open santoshbs opened 4 years ago

santoshbs commented 4 years ago

It looks like the search does not return retweets containing the term. For example, consider the following code:

import twint
c = twint.Config()
c.Username = "google"
c.Search = "#covid19"
twint.run.Search(c)

It does not return, for example, a retweet - https://mobile.twitter.com/Googleorg/status/1286773736880758784.

Is there any way to not exclude retweets?

Thanks and regards sbs

AndrewCGreen commented 4 years ago

I was able to include only retweets by including c.Native_retweets = True to that query you ran above. So you might have to run two queries.

santoshbs commented 4 years ago

Unfortunately the c.Native_retweets = True returns only partial results. The following code, for example, does not return this tweet - https://mobile.twitter.com/gsuite/status/1283485436393000963

import twint
c = twint.Config()
c.Username = "google"
c.Search = "#googlemeet"
c.Native_retweets = True
twint.run.Search(c)