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 e043d0b commit a969d89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scraper.py
Expand Up @@ -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)
Expand Down

0 comments on commit a969d89

Please sign in to comment.