Python Requests: NewConnectionError

Python Requests: NewConnectionError

The error you are getting is Name or service not known. This means that the server cannot find an IP address for www.google.com

Make sure you copy / pasted everything correctly and then next from the same shell you are running the python script from, see if you can ping www.google.com

It could be as simple as the network (or DNS) isnt configured for that machine / shell.

Python Requests: NewConnectionError

Leave a Reply

Your email address will not be published. Required fields are marked *