Skip to content

Instantly share code, notes, and snippets.

@murajun1978
Created November 5, 2012 07:17
Show Gist options
  • Save murajun1978/4015775 to your computer and use it in GitHub Desktop.
Save murajun1978/4015775 to your computer and use it in GitHub Desktop.
Search ATND events
require 'nokogiri'
require 'open-uri'
#ATND API Reference -> http://atnd.org/doc/api.html
#Search "Pronama" events.
xml_doc = Nokogiri::XML(open("http://api.atnd.org/events/?keyword=pronama&format=xml"))
#Get titles
xml_doc.search("//title").each do |title|
puts title.text
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment