From ed61a5fdcf9b5f4ee3e5765430f606bcd91da120 Mon Sep 17 00:00:00 2001 From: Etim Nse-Abasi Date: Tue, 10 Nov 2020 22:00:42 +0100 Subject: [PATCH] Update script.py Corrected Comments on Code --- script.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.py b/script.py index 64373c9..feadb5e 100644 --- a/script.py +++ b/script.py @@ -5,10 +5,10 @@ "https://codedamn-classrooms.github.io/webscraper-python-codedamn-classroom-website/") soup = BeautifulSoup(page.content, 'html.parser') -# Create top_items as empty list +# Create all_links as empty list all_links = [] -# Extract and store in top_items according to instructions on the left +# Extract and store in all_links according to instructions on the left links = soup.select('a') for ahref in links: text = ahref.text