Not very elegant, but it’s my first script in Ruby. Bits and pieces of code mashed into a beautiful chaos of workability. The result is the load time for Google.com via webpagetest.org. I’m using Selenium, Nokogiri and action mailer to send the result.

Next project is to translate this script into Python. Hmm… maybe do this in Python and parse the data from XML instead? That would be cool. I’ll mull it over…

webscraper.rb

SimpleMailer.rb

My first script: hacked webscraper

Category: NotesProgrammierung
357 views