mispy/twitter_ebooks — pull request #43 by Stawberri (2014-12-07 06:02:45+00:00)
Title: meta.media_uris

Adds media_uris to tweet meta, which returns an array of strings
containing the URIs of media inside your tweet.

This is meant to be used with my improved pictweet! Basically, if you pass this function as a second parameter, you can use a block to do some processing of each image, and then upload it again right away!

pictweet('Look at what I did!', meta(tweet).media_uris) do |picture|
do_fancy_stuff(picture)
end

And just like that, you can automagically download all the media from a tweet, do_fancy_stuff to it, and upload it again, all in three lines!