Skip to content

Instantly share code, notes, and snippets.

@eqdw
Created January 23, 2011 19:16
Show Gist options
  • Save eqdw/792334 to your computer and use it in GitHub Desktop.
Save eqdw/792334 to your computer and use it in GitHub Desktop.
[WIP] GData Calendar Scraping
require 'gdata'
require 'json' #parsing
cal = GData::Client::Calendar.new
cal.source = "innovatis_gdata_test"
cal.clientlogin("[email protected]", "YOUR_PASSWORD")
#now authenticated
#pull list of calendars which the currently logged in user can access. in json
feed = cal.get("https://www.google.com/calendar/feeds/default/allcalendars/full?alt=jsonc")
#parse body
feed_body = JSON.parse(feed.body)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment