- response = requests.get(url)
- if response.ok:
- jd = json.loads(response.content)
- j.append(jd["items"][0])
- time.sleep(.1)
- else:
- print(f"Not ok response: {response.status_code} from {url}")
-
- #3 Save results as a JSON and TSV
+ response = requests.get(url)
+ if response.ok:
+ jd = json.loads(response.content)
+ j.append(jd["items"][0])
+ time.sleep(.1)
+ else:
+ print(f"Not ok response: {response.status_code} from {url}")
+
+ #3 Save results as a JSON and TSV