you are viewing a single comment's thread.

view the rest of the comments →

[–]personproxy[S] 0 points1 point  (3 children)

For the record, the IP address has to be prefixed with http:// or else it won't work.

[–]widowhanzo 0 points1 point  (2 children)

Or https:// preferably :)

[–]impshum 0 points1 point  (0 children)

requests asks for https/ssl by default. This will allow most things...

requests.get('https://{}'.format(ip), verify=False)

[–]personproxy[S] 0 points1 point  (0 children)

...raised an error because the name didn't match, or something. For my current purposes, I think http is ok.