Forums

Urrlib accesing link external

<class 'urllib2.URLError'> <urlopen error Tunnel connection failed: 403 Forbidden>

I'm trying make authentication social to linkedin, but when I make the solicitation, the pythonanywhere show me this message . I see at whitelist and api.linkedin.com was there.

urllib2 and other older URL libraries have trouble with SSL through a proxy. If you use a more modern one, like requests, it should work.

Then, whether I to continue using urllib2 will go have this problem? Not have how revert this error with urllib2?

Try the requests library instead. It's very user-friendly, and it works nicely with our proxy.

As a user, I'd like to say REQUESTS ROCKS

:-)