User Friendly Python Script to Gather Meetup.com API Data
Save yourself time by automatically generating a cleaned dataset of all registered meetup groups at a given location!
Which information is included?
The script outputs a CSV file containing the following information on each group:
- Basic Info
- name of group
- group url name (meetup.com/…)
- Location
- city name
- approx. latitude of meetup location
- approx. longitude of meetup location
- Group Attributes
- meetup category (Social, Tech, Arts, etc.)
- date & time of group creation (in local timezone)
- join mode (open / approval)
- status (active / grace)
- number of current members
- Past Events
- number of previous events
- date & time of most recent event (in local timezone)
- number of ‘yes’ rsvps for most recent event
How to use it
Note that you must have python 3.6 installed along with the necessary libraries and modules described in the readme file of this script. I recommend the Anaconda distribution of Python which includes everything you will need.
-
Visit my github to clone the repo (i.e. download the zip file).
-
Open up a terminal and navigate to the unzipped folder.
- Run:
python meetup_gen_csv.py
-
You will be prompted for your meetup.com API key the first time. You will need to register a normal user account with meetup.com to obtain a key. You need only enter this once; the script will remember your key for any subsequent uses.
-
Then enter your desired zip code and search radius.
-
If all your inputs were valid, the script will make all the necessary server requests, clean and organize the data, then export a CSV file for you.
-
That’s it! Your are now ready to open the file in your favorite program and discover the insights it has to offer.
If you want to see how it works under the hood, check out the code for yourself.