def download(fileName):
f = open(fileName,'wb')
f.write(requests.get('site.com', headers={'User-Agent': 'My User Agent 1.0'}).content)
f.close()
while True
download(str(i)+'.jpg')
def download(fileName):
f = open(fileName,'wb')
f.write(requests.get('site.com', headers={'User-Agent': 'My User Agent 1.0'}).content)
f.close()
for i in range(100):
download(str(i)+'.jpg')