urllib.parse

Stdlib — NetworkingPython 2.0+Advanced

Parse and construct URLs: urlparse, urlencode, quote

Quick Info

Documentation
Official Docs
Python Version
2.0+
Dependencies
None — Python Standard Library
Install
Included with Python

Learn by Difficulty

Quick Example

python
import urllib.parse

print(f"Module: urllib.parse")
print(f"Contents: {dir(urllib.parse)[:10]}")

The urllib.parse module is part of Python's standard library. Parse and construct URLs: urlparse, urlencode, quote.

Try in Playground

Tags

stdlibnetworkinginternet