Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

--exclude-retweets #2

Open
edsu opened this issue Feb 28, 2018 · 6 comments
Open

--exclude-retweets #2

edsu opened this issue Feb 28, 2018 · 6 comments

Comments

@edsu
Copy link

edsu commented Feb 28, 2018

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! 🍰

@semmet95
Copy link

Have you found any way to include retweets in the search result?

@edsu
Copy link
Author

edsu commented Mar 26, 2018

@singh-95 The search API returns retweets that match a query, but the web accessible search interface does not...at least to my knowledge.

@semmet95
Copy link

@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?

@edsu
Copy link
Author

edsu commented Mar 26, 2018

Do you have the JSON for the tweet?

@semmet95
Copy link

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.

@igorbrigadir
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants