I am trying to GET response from a login page
Here is the code i tried to use
import http.client
url ="https://accounts.spotify.com/en/login?continue=https:%2F%2Fwww.spotify.com%2Fus%2Faccount%2Foverview%2F"
conn = http.client.HTTPSConnection(url,port=None)
conn.request("GET", "/")
r1 = conn.getresponse()
print(r1.status, r1.reason)
And this is the error i am getting
InvalidURL: nonnumeric port: '%2F%2Fwww.spotify.com%2Fus%2Faccount%2Foverview%2F'
The get url in my code contains : its reading data after that as PORT even after passing an extra argument port=None
Can someone help me out of this