Skip to content

Instantly share code, notes, and snippets.

@johanndiedrick
Last active May 23, 2016 11:17

Revisions

  1. johanndiedrick revised this gist Jul 1, 2015. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,6 @@ import requests

    r = requests.get("http://www.metmuseum.org/collection/the-collection-online/search/36484")
    bs = BeautifulSoup(r.content)
    print r.content
    imgs = bs.findAll('img', src=True)
    for img in imgs:
    print img['src']
  2. johanndiedrick created this gist Jul 1, 2015.
    10 changes: 10 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    from bs4 import BeautifulSoup
    import requests


    r = requests.get("http://www.metmuseum.org/collection/the-collection-online/search/36484")
    bs = BeautifulSoup(r.content)
    print r.content
    imgs = bs.findAll('img', src=True)
    for img in imgs:
    print img['src']