Skip to content

Instantly share code, notes, and snippets.

@lakshay-arora
Created September 30, 2019 12:49
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/84e9931552a92bf3a3abfb33f6ecd3c5 to your computer and use it in GitHub Desktop.
Save lakshay-arora/84e9931552a92bf3a3abfb33f6ecd3c5 to your computer and use it in GitHub Desktop.
# select src tag
image_src = [x['src'] for x in images]
# select only jp format images
image_src = [x for x in image_src if x.endswith('.jpg')]
for image in image_src:
print(image)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment