<reponame>thisisglee/Data-Visualizations
import requests
import json

#Make an api and store the  response
url='https://hacker-news.firebaseio.com/v0/item/8863.json'
r = requests.get(url)
print(f"Status Code: {r.status_code}")

#Explore the structure of the data
response_dict = r.json()
readable_file = 'data/readable_hn_data.json'
with open(readable_file,'w') as f:
	json.dump(response_dict, f, indent=4)
import requests
import json

#Make an api and store the  response
url='https://hacker-news.firebaseio.com/v0/item/8863.json'
r = requests.get(url)
print(f"Status Code: {r.status_code}")

#Explore the structure of the data
response_dict = r.json()
readable_file = 'data/readable_hn_data.json'
with open(readable_file,'w') as f:
	json.dump(response_dict, f, indent=4)
#Make an api and store the  response #Explore the structure of the data