urllib2 HTTP Error 400: Bad Request
The reason that “the dog” returns a 400 Error is because you aren’t escaping the string for a URL. If you do this: It will work. However I highly suggest you use requests instead of using urllib/urllib2/httplib. It’s much much easier and it’ll handle all of this for you. This is the same code with … Read more