Skip to content

Instantly share code, notes, and snippets.

@patrickspencer
Created June 5, 2017 16:12
Show Gist options
  • Select an option

  • Save patrickspencer/5af92dc426416f73c799e5adc7cb564d to your computer and use it in GitHub Desktop.

Select an option

Save patrickspencer/5af92dc426416f73c799e5adc7cb564d to your computer and use it in GitHub Desktop.
Accessing the meetup api with python
import pprint
import requests
# put in your api key below
api_key = ""
pp = pprint.PrettyPrinter(indent=4)
urlname = "ny-tech"
event_id = 3428886
url = "https://api.meetup.com/{}/events/{}/rsvps?key={}".format(urlname, event_id, api_key)
r = requests.get(url)
print(pp.pprint(r.json()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment