Gists to post in the medium article as it does not support syntax highlighting
import requests
url = 'https://www.reddit.com/r/wallpapers.json'
response = requests.get(url)
if not response.ok:
print("Error", response.status_code)
exit()
data = response.json()
print(data)