code-dumps/py/url-check-requests.py

8 lines
111 B
Python
Executable File

#!/usr/bin/python3
import requests
url = "https://stats.oecd.org/"
resp = requests.get(url)
print(resp.text)