diff --git a/scraper.py b/scraper.py index 9e6db4b..d3f0b5f 100644 --- a/scraper.py +++ b/scraper.py @@ -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 }