Skip to content

Instantly share code, notes, and snippets.

@lakshay-arora
Created September 30, 2019 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lakshay-arora/d3d6c62f70934b79b896d9453be05a5b to your computer and use it in GitHub Desktop.
Save lakshay-arora/d3d6c62f70934b79b896d9453be05a5b to your computer and use it in GitHub Desktop.
image_count = 1
for image in image_src:
with open('image_'+str(image_count)+'.jpg', 'wb') as f:
res = requests.get(image)
f.write(res.content)
image_count = image_count+1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment