Skip to content

Commit

Permalink
Create scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
walinchus committed Jun 15, 2017
1 parent c96753e commit e8c872a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scraper.py
Expand Up @@ -44,7 +44,9 @@ def scrape_table(root):
#for each row, loop through this
#for rownum in rowsrange:
for row in rows:
record['Crime and Outcome'] = row[1].text_content()
id + 1
record['Count'+str(id)+'as filed:'] = row[1].text_content()
record['Count'+str(id)+'as disposed:'] = row[2].text_content()
#print "scraping row", rownum
#create a list of all cells <td> in that row
'''table_cells = row.cssselect("td")
Expand Down

0 comments on commit e8c872a

Please sign in to comment.