So basically the idea is to use python to login to a website and copy the content of a html page that can only be viewed after you have logged in. (under https)
Any suggestions on how to achieve this? Requests? http.client.HTTPSConnection?
I currently have
h1 = http.client.HTTPSConnection(URL) #question: what exactly should this url page be?
https://accounts.google.com/ServiceLoginhl=en&continue=https://www.google.ca/
or https://google.ca
userAndPass = b64encode(b"usrname:pwd").decode("ascii")
headers = { 'Authorization' : 'Basic %s' % userAndPass }
#then connect
h1.request('GET', '$THEPAGETHATIWANTTOACCESS', headers=headers)
Thanks a lot!