From e72ee1558457456d206d5c11cc04eb8ceff19c42 Mon Sep 17 00:00:00 2001 From: Paul Bradshaw Date: Fri, 3 Mar 2017 08:29:33 +0000 Subject: [PATCH] changed end part of url --- scraper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scraper.py b/scraper.py index bf5036e..3e64079 100644 --- a/scraper.py +++ b/scraper.py @@ -45,6 +45,6 @@ def scrape_and_look_for_next_link(url): # START HERE: define your starting URL - then # call a function to scrape the first page in the series. # --------------------------------------------------------------------------- -base_url = 'https://paulbradshaw.github.io/scraping-for-everyone/webpages/' -starting_url = urlparse.urljoin(base_url, 'example_table_1.html') +base_url = 'https://paulbradshaw.github.io/' +starting_url = urlparse.urljoin(base_url, 'scraping-for-everyone/webpages/example_table_1.html') scrape_and_look_for_next_link(starting_url)