Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
g0rd committed Sep 21, 2014
1 parent 269882c commit 5e05a94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -65,7 +65,7 @@ def scrape(schoolcode):
print school_name[0].text_content().encode("utf-8").strip()
ell_budget = tree.cssselect('span#doecontrol_bottomcentercontainer_School_Budget_Overview_lblELLSubTotal_C04')
print ell_budget[0].text_content().encode("utf-8").strip()
school = string.join(school_name[0].text_content().encode("utf-8").split().pop(0))
school = join(school_name[0].text_content().encode("utf-8").split().pop(0))
budget = ell_budget[0].text_content().encode("utf-8").strip()
output = {"school_id": schoolcode, "school_name":school, "budget": budget }

Expand Down

0 comments on commit 5e05a94

Please sign in to comment.