A tool for visualising meetup information using Python and RickshawJS
git clone https://github.com/implicit-explicit/meetup_hacking cd meetup_hacking vagrant up vagrant ssh cd /vagrant/code
You now have a CentOS7 VM with Python33 and you're ready to start running commands.
Pulling member information for a group
- First you need to generate your meetup API key at https://secure.meetup.com/meetup_api/key/
- Then get the url_name of the meetup group you would like to query. This is the name in the URL when you're looking at it in your browser. So for example the url_name for the Software Circus meetup group would be 'Software-Circus'
- Then you can run meetup_members.py
./meetup_members.py <YOUR API KEY> <url_name> [Number of members to pull per batch]
This will write the member information for the specified group to stdout.
Preparing member information for visualisation
Now you have the member data for the specified group but before you have display this you will need to preprocess it first.
- Pipe the output of the first command into members_over_time.py.
./meetup_members.py <YOUR API KEY> <url_name> [Number of members to pull per batch] | ./members_over_time.py
- The results will be written to stdout. Better to stick them in a file for now.
./meetup_members.py <YOUR API KEY> <url_name> [Number of members to pull per batch] | ./members_over_time.py > <url_name>.json
Displaying your results
- Copy your new JSON file into the data directory
mkdir visualization/data cp <url_name>.json visualization/data cd visualisation python -m http.server 8000
- Then in a browser navigate to http://localhost:8000/members.html
You can use the very basic web version by navigating to /vagrant/code/meetup_members_web, adding your API key in the config.py script, and running the start_app.sh script: