twitter-scraper
twitter-scraper copied to clipboard
--exclude-retweets
Is the --exclude-retweets
option necessary? I don't think there's a way to include retweets when searching is there?
This is an awesome little script btw! 🍰
Have you found any way to include retweets in the search result?
@singh-95 The search API returns retweets that match a query, but the web accessible search interface does not...at least to my knowledge.
@edsu Thanks for answering. Yeah, I couldn't find any way to get retweets using search interface either. And sorry for asking another question here but is there a way to resize images from twitter posts if have the image url using url parameters?
Do you have the JSON for the tweet?
Yes. https://pastebin.com/GXCjxH4x
This is the link to JSON object that contains tweets on the user timeline. In case of retweets the image url is stored in the ['retweeted_status'] ['extended_entities'] ['media'] [0] ['media_url'] key.
In case of tweets, the image url is stored in the ['extended_entities'] ['media'] [0] ['media_url_https'] key.
In case this comes up in a search one day..
Have you found any way to include retweets in the search result?
Yes, add include:nativeretweets
in the search