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 382e8c1 commit 7d5b00e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -40,7 +40,7 @@ def scrape_table(root):
print "scraping row", rownum
#create a list of all cells <td> in that row
table_cells = row.cssselect("td")
record['Charge'+rownum] = table_cells[rownum].text_content()
record['Charge'+str(rownum)] = table_cells[rownum].text_content()
print record, '------------'
# Save the record to the datastore - 'ID' is our unique key - '''
print 'ALL DATA:', record
Expand Down

0 comments on commit 7d5b00e

Please sign in to comment.