2 ms·
import json, requests, csv def startup(n): url = 'http://itsthisforthat.com/api.php?json' c = 0 while c < n: data = requests.get(url=url)
by mjhea0 13y ago
import json, requests, csv
def startup(n):
url = 'http://itsthisforthat.com/api.php?json'
c = 0
while c < n:
data = requests.get(url=url)
binary = data.content
output = json.loads(binary)
row = "It's a " + output['this'] + " for " + output['that'] +"!"
print row
c += 1
startup(100)