Web Analytics

Python urllib.request.urlopen() Function

Networkingโ€ขHTTP Requests

The urllib.request.urlopen() function opens a URL and returns a response object.

Syntax

urllib.request.urlopen(url, data=None, timeout=None)

Return Value

A response object.

Example

Output
Click Run to execute your code