Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
packt-joeld committed Dec 6, 2017
1 parent 93f8f5b commit 12af4b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -2,9 +2,9 @@
import urlparse
import lxml.html
# scrape_table function: gets passed an individual page to scrape
#def scrape_table(root):
def scrape_table(root):
# selects all <tr blocks within <table class="data"
rows = root.cssselect("table.data tr")
rows = root.cssselect("table.data tr")
for row in rows:
# Set up our data record - we'll need it later
record = {}
Expand Down

0 comments on commit 12af4b2

Please sign in to comment.