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 58fa060 commit f19a8b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scraper.py
Expand Up @@ -37,8 +37,7 @@ def scrape_and_look_for_next_link(url):
next_link = root.cssselect("a.next")
print next_link
if next_link:
next_url = urlparse.urljoin(base_url, \
next_link[0].attrib.get('href'))
next_url = urlparse.urljoin(base_url, next_link[0].attrib.get('href'))
print next_url
scrape_and_look_for_next_link(next_url)
# ----------------------------------------------------------------
Expand Down

0 comments on commit f19a8b1

Please sign in to comment.