2 ms·
Good point. However, there's a box saying that request is recommended at the top of the urllib.request docs. https://docs.python.org/3.8/library/urllib.request
by anoncake 7y ago
Good point. However, there's a box saying that request is recommended at the top of the urllib.request docs.
https://docs.python.org/3.8/library/urllib.request.html#module-urllib.request https://docs.python.org/3.8/library/urllib.request.html#modu...
- ben509 7y agoUnfortunately, I think people usually search StackOverflow, or just type into Google and get pointed to SO. If they type in "how do I download a web page in python" they get: 1. urllib [1] 2. BeautifulSoup and a comment mentioning requests [2] 3. requests [3] 4. urllib, httplib [4] Which is looking better than I expected... but no information on 2 or 3 relating to how you install those libraries. So 1 and 4 will Just Work. [1]: https://stackoverflow.com/questions/45717889/read-the-text-of-an-web-page-in-python https://stackoverflow.com/questions/45717889/read-the-text-o... [2]: https://stackoverflow.com/questions/26050064/automating-download-of-executable-which-is-within-several-nested-urls-by-listeni https://stackoverflow.com/questions/26050064/automating-down... [3]: https://stackoverflow.com/questions/44553348/how-to-download-from-an-html-link-href-in-python https://stackoverflow.com/questions/44553348/how-to-download... [4]: https://stackoverflow.com/questions/2646288/retrieve-some-info-from-the-web-automatically https://stackoverflow.com/questions/2646288/retrieve-some-in...