Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

get the book:

require 'open-uri';(1..48).to_a.each{|x| open('http://www.fbbook.com/promo/mashable/read.php?p='+x.to_s){|u| File.open("page_#{x}.html","w"){|f|f.puts u.readlines}}}



What is that? Perl? ;P


Looks like ruby.

wget -r can probably do the same thing and is easier.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: