From c96753ecc4d3a0728a2a42594078101bff912243 Mon Sep 17 00:00:00 2001 From: Lucia Walinchus Date: Thu, 15 Jun 2017 16:29:50 -0500 Subject: [PATCH] Create scraper.py --- scraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper.py b/scraper.py index b8d8d93..62d16c3 100644 --- a/scraper.py +++ b/scraper.py @@ -44,7 +44,7 @@ def scrape_table(root): #for each row, loop through this #for rownum in rowsrange: for row in rows: - record['Crime and Outcome'] = row[0].text_content() + record['Crime and Outcome'] = row[1].text_content() #print "scraping row", rownum #create a list of all cells in that row '''table_cells = row.cssselect("td")