Created
October 20, 2015 18:38
-
-
Save kapilt/d2421b023363eb0d01be to your computer and use it in GitHub Desktop.
extract attendees from meetup event
This file contains hidden or 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 csv | |
| import pythonkc_meetups.client | |
| from pythonkc_meetups import PythonKCMeetups | |
| pythonkc_meetups.client.GROUP_URLNAME = "Ansible-NOVA" | |
| m = PythonKCMeetups('API_KEY') | |
| events = m.get_upcoming_events() | |
| attendees = m.get_event_attendees(events[0].id) | |
| with open('attendees.csv', 'w') as fh: | |
| writer = csv.writer(fh) | |
| for a in attendees: | |
| writer.writerow([a.name]) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment