Created
January 15, 2013 22:44
-
-
Save craigtracey/4542893 to your computer and use it in GitHub Desktop.
Union of Chef for OpenStack attendees
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
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