'download multiple request json in python
I need save 100 request per second in .json I tried everything but I don't know how to solve it, I would appreciate if you help me
i = 300000
while i <= 1000000:
url = (f"{myurl}{i}&format=json")
r = requests.get(url,headers=headers, allow_redirects=True)
print(r.content)
if r.status_code == 200:
open(f"i\{i}.json", "wb").write(r.content)
print(i)
i += 1
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
