Skip to content

Instantly share code, notes, and snippets.

@craigtracey
Created January 15, 2013 22:44
Show Gist options
  • Save craigtracey/4542893 to your computer and use it in GitHub Desktop.
Save craigtracey/4542893 to your computer and use it in GitHub Desktop.
Union of Chef for OpenStack attendees
import requests
import json
API_KEY = <your meetup api key here>
EVENT_IDS = [ 98235712, 99553192 ]
attendees = set()
for event_id in EVENT_IDS:
r = requests.get("https://api.meetup.com/rsvps?key=%s&sign=true&event_id=%d" % (API_KEY, event_id))
rsvps = json.loads(r.text)
attendees.update([r['name'] for r in rsvps['results']])
for name in sorted(attendees, key=lambda x:x[0].lower()):
print name
print "Total: %d" % len(attendees)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment