Created
May 27, 2011 11:08
-
-
Save nakao/995046 to your computer and use it in GitHub Desktop.
Extracting tweets from 2011 Galaxy Community Conference #usegalaxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://twitter.com/#!/pjacock/status/74029124242505728 | |
# https://twitter.com/#!/32nm/status/74070121219497984 | |
require 'rubygems' | |
require 'open-uri' | |
require 'nokogiri' | |
url = "http://togetter.com/li/140056" | |
doc = Nokogiri::HTML(open(url).read) | |
puts doc.xpath("//div[@class='status']/a").map {|x| x.attribute("href").value } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment