Created
June 30, 2011 13:22
-
-
Save acrymble/1056219 to your computer and use it in GitHub Desktop.
HTML to list 1
This file contains hidden or 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
| #html-to-list1.py | |
| import urllib2, obo | |
| url = 'http://www.oldbaileyonline.org/print.jsp?div=t17800628-33' | |
| response = urllib2.urlopen(url) | |
| html = response.read() | |
| text = obo.stripTags(html) | |
| wordlist = text.split() | |
| print wordlist[0:120] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found in a lesson from programming historian, thank you!