Created
January 14, 2013 11:17
-
-
Save philn/4529428 to your computer and use it in GitHub Desktop.
Commit message generator
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
#!/usr/bin/env python | |
import urllib2, BeautifulSoup | |
url = "http://whatthecommit.com/" | |
data = urllib2.urlopen(url).read() | |
soup = BeautifulSoup.BeautifulSoup(data) | |
msg = soup.findAll("div", attrs={"id":"content"})[0].findAll("p")[0].text | |
print msg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment