Région de recherche :

Date :

https://docs.python.org › 3 › howto › urllib2.html

HOWTO Fetch Internet Resources Using The urllib Package - Python

urllib.request is a Python module for fetching URLs (Uniform Resource Locators). It offers a very simple interface, in the form of the urlopen function. This is capable of fetching URLs using a variety of different protocols.

https://www.pythonforbeginners.com › python-on-the-web › how-to-use-urllib2-in-python

How to use urllib2 in Python - PythonForBeginners.com

urllib2 is a Python module that can be used for fetching URLs. It defines functions and classes to help with URL actions (basic and digest authentication, redirections, cookies, etc)

https://stackoverflow.com › questions › 2792650

python - Import error: No module name urllib2 - Stack Overflow

The urllib2 module has been split across several modules in Python 3 named urllib.request and urllib.error. The 2to3 tool will automatically adapt imports when converting your sources to Python 3. So you should instead be saying. from urllib.request import urlopen. html = urlopen("http://www.google.com/").read()

https://docs.python.org › 3 › library › urllib

urllib — URL handling modules — Python 3.12.6 documentation

urllib is a package that collects several modules for working with URLs: urllib.request for opening and reading URLs. urllib.error containing the exceptions raised by urllib.request. urllib.parse for parsing URLs. urllib.robotparser for parsing robots.txt files.

https://python.readthedocs.io › en › v2.7.2 › library › urllib2.html

20.6. urllib2 — extensible library for opening URLs — Python 2.7.2 ...

Learn how to use urllib2 module to open URLs (mostly HTTP) with authentication, redirections, cookies and more. See functions, classes, exceptions and examples of urllib2.urlopen, urllib2.install_opener, urllib2.build_opener and urllib2.Request.

https://realpython.com › urllib-request

Python's urllib.request for HTTP Requests – Real Python

In this tutorial, you'll be making HTTP requests with Python's built-in urllib.request. You'll try out examples and review common errors encountered, all while learning more about HTTP requests and Python in general.

Python's urllib.request for HTTP Requests – Real Python

https://docs.python.org › 3 › library › urllib.request.html

urllib.request — Extensible library for opening URLs - Python

The urllib.request module defines the following functions: urllib.request.urlopen(url, data=None, [timeout, ]*, cafile=None, capath=None, cadefault=False, context=None) ¶. Open url, which can be either a string containing a valid, properly encoded URL, or a Request object.

https://runebook.dev › fr › docs › python › howto › urllib2

Python - HOWTO Récupérer des ressources Internet à l'aide du package ...

Si vous trouvez Python installé sur votre système mais que vous ne vous souvenez pas de l'avoir installé, il existe plusieurs façons possibles d'y arriver. Peut-être qu'un autre utilisateur de l'ordinateur a voulu apprendre la programmation et l'a installé ; vous devrez déterminer qui a utilisé la machine et qui l'a peut-être installée.

https://tedboy.github.io › python_stdlib › generated › urllib2.html

urllib2 — Python Standard Library - GitHub Pages

Learn how to use urllib2 module to open URLs using various protocols and options. See functions, classes, exceptions and examples of urlopen, build_opener, install_opener and more.

https://python.readthedocs.io › en › v2.7.2 › howto › urllib2.html

HOWTO Fetch Internet Resources Using urllib2 — Python 2.7.2 documentation

urllib2 is a Python module for fetching URLs (Uniform Resource Locators). It offers a very simple interface, in the form of the urlopen function. This is capable of fetching URLs using a variety of different protocols.