From a969d898ad4274e15897ab46e4a9dcb677e9f04f Mon Sep 17 00:00:00 2001 From: Lucia Walinchus Date: Thu, 15 Jun 2017 13:57:06 -0500 Subject: [PATCH] Create scraper.py --- scraper.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scraper.py b/scraper.py index d7bff8c..bc2877f 100644 --- a/scraper.py +++ b/scraper.py @@ -31,10 +31,10 @@ def scrape_table(root): counts = root.cssselect("div.sized div.CountsContainer") countstotal = len(counts) print "total number of counts:", countstotal - countsrange = range(0, countstotal+1) - for counts in countsrange: - #for count in counts: - rows = counts.cssselect('tr') + #countsrange = range(0, countstotal+1) + #for count in countsrange: + for count in counts: + rows = count.cssselect('tr') if rows: id = 0 #rowstotal = len(rows)