# These two commands solve the issue of HTTPS InsecurePlatformWarning in Python:
# pip install requests
# pip install pyopenssl ndg-httpsclient pyasn1

import requests, json
import requests.packages.urllib3.contrib.pyopenssl
requests.packages.urllib3.contrib.pyopenssl.inject_into_urllib3()

r = requests.get('https://api.tnyu.org/v2/events')
data = json.loads(r.text)

# All events
# print data['data']

# Title of the first event that's returned from the API
# print data['data'][0]['title']

# Printing out all the titles
for i in data['data']:
	print i['title']

@@ -285,16 +285,107 @@
 lib3()%0A%0A
+headers = %7B'content-type': 'application/vnd.api+json', 'accepts': 'application/*, text/*'%7D%0A
 r = requ
@@ -425,16 +425,33 @@
 /events'
+, headers=headers
 )%0Adata =

Add headers for python