Skip to content

Instantly share code, notes, and snippets.

@Syd
Created December 10, 2008 05:24
Show Gist options
  • Save Syd/34247 to your computer and use it in GitHub Desktop.
Save Syd/34247 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'nokogiri'
require 'open-uri'
url = open("http://steamcommunity.com/id/syd/friends")
doc = Nokogiri::HTML(url)
doc.xpath('//a[@class="linkFriend_online"]').each {|x| puts x.text}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment