Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created March 20, 2020 20:14
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 aniruddha27/285c05cb32814991af0e90f34e14f88a to your computer and use it in GitHub Desktop.
Save aniruddha27/285c05cb32814991af0e90f34e14f88a to your computer and use it in GitHub Desktop.
images = soup.find_all('img')
i = 1
for image in images[2:10]:
try:
download_img('https:'+image.get('src'), i)
i = i+1
except:
continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment