Created
January 18, 2015 12:41
-
-
Save BenTheHokie/8747682b6e626b58aa20 to your computer and use it in GitHub Desktop.
bee ess for
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 | |
from bs4 import BeautifulSoup | |
import urllib | |
import re | |
r = urllib.urlopen("http://www.housing.umich.edu/files/helper_files/js/xml2print.php?location=MARKETPLACE&date=today&html=undefined").read() | |
xp = re.compile("<a class=\"info\" HREF=\"#\">.+<span>") | |
strfood = [BeautifulSoup(b).text for b in xp.findall(r)] | |
for i in strfood: | |
print i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment