Skip to content

Instantly share code, notes, and snippets.

@johanndiedrick
Last active May 23, 2016 11:17
Show Gist options
  • Save johanndiedrick/2eb6fd4b67eed16965b3 to your computer and use it in GitHub Desktop.
Save johanndiedrick/2eb6fd4b67eed16965b3 to your computer and use it in GitHub Desktop.
img scraper
from bs4 import BeautifulSoup
import requests
r = requests.get("http://www.metmuseum.org/collection/the-collection-online/search/36484")
bs = BeautifulSoup(r.content)
imgs = bs.findAll('img', src=True)
for img in imgs:
print img['src']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment