Skip to content

Commit

Permalink
one more
Browse files Browse the repository at this point in the history
  • Loading branch information
g0rd committed Sep 21, 2014
1 parent 677ef8f commit 448bdce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ def scrape(schoolcode):
# catmap[category] = cells[1].text.strip()

ldata = [ ]
data["dollars"] = ell_budget;
for category, val in catmap.items():
data["dollars"] = ell_budget;
#for category, val in catmap.items():
#data = { "category":category, "val":val }
# eif re.match("[\d\$.]+$", val[0]):
# data["dollars"] = int(re.sub("[\$,]", "", val))
Expand All @@ -99,8 +99,8 @@ def scrape(schoolcode):
# data['majorcategory'] = majorcat
# break

data.update(output)
ldata.append(data)
data.update(output)
ldata.append(data)

#pprint(ldata)
scraperwiki.sqlite.save(unique_keys=['school_id'], data=ldata, table_name=TABLE)
Expand Down

0 comments on commit 448bdce

Please sign in to comment.