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 8026418 commit 2c99f8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scraper.py
Expand Up @@ -49,9 +49,9 @@ def scrape_table(root):
#create a list of all cells <td> in that row
table_cells = row.cssselect("td")
print table_cells
#record['Charges'] = table_cells.text_content()
#record['Count Description:'] = table_cells[1].text_content()
#record['Outcome:'] = table_cells[2].textcontent()
record['Charges'] = table_cells[0].text_content()
record['Count Description:'] = table_cells[1].text_content()
record['Outcome:'] = table_cells[3].textcontent()
print record, '------------'
# Save the record to the datastore - 'ID' is our unique key - '''
print 'ALL DATA:', record
Expand Down

0 comments on commit 2c99f8a

Please sign in to comment.