File indexing completed on 2024-05-19 15:23:03

0001 def escapeURL(url)
0002     url2 = url.dup
0003     url2.gsub!('?', '_')
0004     url2.gsub!(':', '_')
0005     url2.gsub!('/', '_')
0006     url2.gsub!('=', '_')
0007     return url2.strip
0008 end
0009 
0010 lines = STDIN.readlines
0011 
0012 lines.each do |i|
0013     system("wget \"#{i.strip}\" -O \"#{escapeURL(i)}\"")
0014 end