Skip to content

Instantly share code, notes, and snippets.

@bash0C7
Created May 25, 2013 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bash0C7/5648777 to your computer and use it in GitHub Desktop.
Save bash0C7/5648777 to your computer and use it in GitHub Desktop.
#require 'open-uri'
max_id = 999999999999999999
twitter_name = 'XXXXXXXXXXXXXXXX'
2.times do
tl = Twitter.user_timeline(twitter_name, count: 200, max_id: max_id, include_rts: false)
media_tl = tl.select{|tweet| !(tweet.media.empty?)}
media_tl.each {|tweet| `open #{tweet.media.first.url}`}
max_id = current.last.id
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment