Skip to content
Python 3.12.0a0 documentation
Press Enter to get search results
Home
  • The Python Standard Library
    • Introduction
    • Built-in Functions
    • Built-in Constants
    • Built-in Types
    • Built-in Exceptions
    • Text Processing Services
    • Binary Data Services
    • Data Types
    • Numeric and Mathematical Modules
    • Functional Programming Modules
    • File and Directory Access
    • Data Persistence
    • Data Compression and Archiving
    • File Formats
    • Cryptographic Services
    • Generic Operating System Services
    • Concurrent Execution
    • Networking and Interprocess Communication
    • Internet Data Handling
    • Structured Markup Processing Tools
    • Internet Protocols and Support
      • webbrowser — Convenient web-browser controller
      • wsgiref — WSGI Utilities and Reference Implementation
      • urllib — URL handling modules
      • urllib.request — Extensible library for opening URLs
      • urllib.response — Response classes used by urllib
      • urllib.parse — Parse URLs into components
      • urllib.error — Exception classes raised by urllib.request
      • urllib.robotparser — Parser for robots.txt
      • http — HTTP modules
      • http.client — HTTP protocol client
      • ftplib — FTP protocol client
      • poplib — POP3 protocol client
      • imaplib — IMAP4 protocol client
      • smtplib — SMTP protocol client
      • uuid — UUID objects according to RFC 4122
      • socketserver — A framework for network servers
      • http.server — HTTP servers
      • http.cookies — HTTP state management
      • http.cookiejar — Cookie handling for HTTP clients
      • xmlrpc — XMLRPC server and client modules
      • xmlrpc.client — XML-RPC client access
      • xmlrpc.server — Basic XML-RPC servers
      • ipaddress — IPv4/IPv6 manipulation library
    • Multimedia Services
    • Internationalization
    • Program Frameworks
    • Graphical User Interfaces with Tk
    • Development Tools
    • Debugging and Profiling
    • Software Packaging and Distribution
    • Python Runtime Services
    • Custom Python Interpreters
    • Importing Modules
    • Python Language Services
    • MS Windows Specific Services
    • Unix Specific Services
    • Superseded Modules
    • Security Considerations
Back to top
  1. Home
  2. The Python Standard Library
  3. Internet Protocols and Support
  4. urllib — URL handling modules

urllib — URL handling modules#

Source code: Lib/urllib/


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

Previous
wsgiref — WSGI Utilities and Reference Implementation
Next
urllib.request — Extensible library for opening URLs
Copyright © 2001-2022, Python Software Foundation
Made with Lutra theme for Sphinx.