[Python] Send an HTTP GET request

Created on November 30, 2026

Use requests.get() from the Requests package to send a GET request. The decoded response body is available as response.text.

import requests

response = requests.get("https://example.com")

print(response.text)
Python