Skip to main content
Question

Is there a way to download pictures from twitter using the tweetsearcher?

  • June 13, 2016
  • 1 reply
  • 22 views

Forum|alt.badge.img

as the title says can you download pictures as jpg or similar that people post on twitter?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

dmitribagh
Safer
Forum|alt.badge.img+19
  • Safer
  • June 13, 2016

Hi @jamiefinney

Yes, it is pretty easy - once TweetSearcher returns the JSON in _tweet_search_result attribute, you can create a new attibute (for example, _image_url) with JSONExtractor with the following syntax:

json["entities"]["media"][*]["media_url_https"]

After this transformer, use ImageFetcher with _image_url, it will return the image.

If you also would like to get aTwitter profile image, use json["user"]["profile_image_url_https"].

I used this technique for our FMECoin contest - see the article here:

http://blog.safe.com/2016/06/fmecoin-whats-behind-...

Dmitri