Advertisement
Guest User

Untitled

a guest
Jan 11th, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. require 'csv'
  2.  
  3. urls = []
  4.  
  5. CSV.foreach('websites.csv') do |row|
  6. urls << row[0]
  7. end
  8.  
  9. 0.upto(999) do |i, x = 0|
  10. if i % 19 == 0
  11. puts urls[(x..i)]
  12. puts "----------------------------------------"
  13. x = i+1
  14. end
  15. end
  16.  
  17. ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement