Skip to content

Commit

Permalink
Clear console output between pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Ukaza Perdana committed Feb 5, 2016
1 parent 27eb1d6 commit 1ff5415
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scraper.rb
Expand Up @@ -8,6 +8,7 @@ def scrape_from site

page_number = 0
loop do
system "clear"
puts "Scanning page ##{page_number += 1} for #{site}"
items = page.search(".votelinks")
items.each do |item|
Expand Down

0 comments on commit 1ff5415

Please sign in to comment.