Skip to content

Instantly share code, notes, and snippets.

@dschneider
Created September 15, 2012 13:10
Show Gist options
  • Save dschneider/3727773 to your computer and use it in GitHub Desktop.
Save dschneider/3727773 to your computer and use it in GitHub Desktop.
Tells me the latest JellyTime rom version that has been released. Just to play around with Nokogiri a little.
# !/usr/bin/ruby
require 'uri'
require 'net/http'
require 'nokogiri'
URL = "http://forum.xda-developers.com/showthread.php?t=1778202"
text = Net::HTTP.get(URI.parse(URL))
doc = Nokogiri::HTML(text)
doc.css('td.postTitle > div > h1 > a').each do |node|
puts node.text
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment