A gem that parses html pages looking for someter data and transforming it to json
-
install :
gem install someter
Note : you need to install nokogiri (gem install nokogiri)
-
use :
sm = SoMeter.new(:string =>string_to_parse)
or :
sm = SoMeter.new(:url =>valide_url)
-
print data in json format :
puts sm.to_json
-
for a more complete example, see : lib/test.rb