Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
walinchus committed Jun 14, 2017
1 parent 0103bd3 commit d86f4cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -36,7 +36,7 @@ def scrape_table(root):
#create a list of all cells <td> in that row
table_cells = row.cssselect("td")
if table_cells[0]:
record['Charge1'] =tablecells[0].textcontent()
record['Charge1'] =table_cells[0].textcontent()
'''for EachCharge in table_cells:
#if there is a cell, record the contents in our dataset, the first cell [0] in 'recipient' and so on
record['Charge1'] = EachCharge[0].text_content()
Expand Down

0 comments on commit d86f4cd

Please sign in to comment.