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 c1aeee4 commit 5593f7f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scraper.py
Expand Up @@ -31,8 +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:
print counts.text_content()
'''countsrange = range(0, countstotal+1)
for count in countsrange:
rows = root.cssselect("div.CountsContainer tr")
id = 0
rowstotal = len(rows)
Expand Down

0 comments on commit 5593f7f

Please sign in to comment.