Skip to content

Instantly share code, notes, and snippets.

@kapilt
Created October 20, 2015 18:38
Show Gist options
  • Select an option

  • Save kapilt/d2421b023363eb0d01be to your computer and use it in GitHub Desktop.

Select an option

Save kapilt/d2421b023363eb0d01be to your computer and use it in GitHub Desktop.
extract attendees from meetup event
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