Update scrape.rb

Refatoring the scrape.rb