Skip to content

Instantly share code, notes, and snippets.

@BenTheHokie
Created January 18, 2015 12:41
Show Gist options
  • Save BenTheHokie/8747682b6e626b58aa20 to your computer and use it in GitHub Desktop.
Save BenTheHokie/8747682b6e626b58aa20 to your computer and use it in GitHub Desktop.
bee ess for
#!/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