Gary Sieling

HTTPS request with python

Run this to get all the HTTP libraries involved:

sudo easy_install request urllib3 pyopenssl ndg-httpsclient pyasn1

Then you can do HTTPs requests:

url = \
   "https://raw.githubusercontent.com/scala/" +
   "scala/6d09a1ba5fffadd1d886afb66ab4496291fda3dd/" +      
   "src/library/scala/util/control/Breaks.scala"

import requests
code = requests.get(url).content
Exit mobile version