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

8 lines
111 B
Python
Raw Normal View History

2023-03-29 13:59:25 +08:00
#!/usr/bin/python3
import requests
url = "https://stats.oecd.org/"
resp = requests.get(url)
print(resp.text)