Guest User

Untitled

a guest
Feb 26th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.40 KB | None | 0 0
  1. %x{curl www.site.com/ | grep -o http://[A-Za-z0-9_.:/]*.jpg >> links}
  2. %x{curl www.site.com/ | grep -o https://[A-Za-z0-9_.:/]*.jpg >> links}
  3.  
  4. for i in 2..3 do
  5.         %x{curl www.site.com/page/#i | grep -o http://[A-Za-z0-9_.:/]*.jpg >> links}
  6.         %x{curl www.site.com/page/#i | grep -o https://[A-Za-z0-9_.:/]*.jpg >> links}
  7. end
  8.  
  9. IO.foreach('links') do |line|
  10.         %x{curl -O #{line}}
  11. end
Advertisement
Add Comment
Please, Sign In to add comment