[Tutor] urllib vs requests
Mats Wichmann
mats at wichmann.us
Mon Dec 6 18:27:29 EST 2021
On 12/6/21 15:37, Julius Hamilton wrote:
> Hey,
>
> Could anyone please let me know why requests.get fetches the following url
> effectively but urllib.request.urlopen returns “403 Forbidden”?
>
> https://juno.sh/direct-connection-to-jupyter-server/
>
> Is it because they make different types of requests so the web server
> detects that urllib is something it doesn’t accept? Is there any way around
> that?
If there's a proxy involved, that's probably the issue, last I knew it
it didn't talk to https through a proxy without some further hacks.
also note that urllib docs themselves recommend using requests if it
makes sense.
>
> By the way, is there any Python email group for slightly more advanced
> questions than the tutor group? More like troubleshooting or something,
> from package maintainers?
python-list is one http://mail.python.org/mailman/listinfo/python-list
can also try https://discuss.python.org/ which is a board, but you can
also access it via email.
Or the Python Discord: https://discord.com/invite/python
More information about the Tutor
mailing list