Skip to content

Instantly share code, notes, and snippets.

@jlengrand
Created May 10, 2014 09:43
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 jlengrand/d2996d0dd59d9309bcfa to your computer and use it in GitHub Desktop.
Save jlengrand/d2996d0dd59d9309bcfa to your computer and use it in GitHub Desktop.
Get the latest octocat
from bs4 import BeautifulSoup
import urllib2
url = "http://feeds.feedburner.com/Octocats"
content = urllib2.urlopen(url).read()
soup = BeautifulSoup(content)
print soup.find("img")["src"]
@jlengrand
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment