Web Analytics

Python urllib.parse.urlparse() Function

Networkingโ€ขURL Parsing

The urllib.parse.urlparse() function parses a URL into six components: scheme, netloc, path, params, query, and fragment.

Syntax

urllib.parse.urlparse(urlstring)

Return Value

A ParseResult object with URL components.

Example

Output
Click Run to execute your code