From 4a75de6ecdfffcfc09d3b8cd611938d982162522 Mon Sep 17 00:00:00 2001 From: Lucia Walinchus Date: Thu, 15 Jun 2017 13:12:40 -0500 Subject: [PATCH] Create scraper.py --- scraper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scraper.py b/scraper.py index 0d32327..8ff7482 100644 --- a/scraper.py +++ b/scraper.py @@ -47,8 +47,8 @@ def scrape_table(root): #print "scraping row", rownum #create a list of all cells in that row table_cells = row.cssselect("td") - record['Charge Number:'] = table_cells[0].text_content() - record['Count Description:'] = table_cells[1].text_content() + record['Charges'] = table_cells.text_content() + #record['Count Description:'] = table_cells[1].text_content() #record['Outcome:'] = table_cells[2].textcontent() print record, '------------' # Save the record to the datastore - 'ID' is our unique key - '''