Skip to content

Instantly share code, notes, and snippets.

@nposener
Last active June 22, 2020 11:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nposener/420d63addcae1e0b3a4cd011fe0e3d87 to your computer and use it in GitHub Desktop.
Save nposener/420d63addcae1e0b3a4cd011fe0e3d87 to your computer and use it in GitHub Desktop.
yad_vashem_scrape
import requests
import shutil
image_path = 'http://namesfs.yadvashem.org/documentation4/16/12587775_03289775/'
path_to_save = '/Users/<USER_NAME>/Downloads/'
number_of_images = 51
for i in range(number_of_images):
image_name = str(i+1).zfill(5) + '.JPG'
resp = requests.get(image_path+image_name, stream=True)
with open(path_to_save + image_name, 'wb') as f:
resp.raw.decode_content = True
shutil.copyfileobj(resp.raw, f)
print('Saved ' + image_name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment