Created
May 10, 2014 09:43
-
-
Save jlengrand/d2996d0dd59d9309bcfa to your computer and use it in GitHub Desktop.
Get the latest octocat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And for the rest
http://askubuntu.com/questions/85162/how-can-i-change-the-wallpaper-using-a-python-script