8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 956acd3 commit 3732d95Copy full SHA for 3732d95
ch15-interacting-with-the-web/2-use-an-html-parser-to-scrape-websites.py
@@ -13,7 +13,7 @@
13
address = base_URL + "/profiles"
14
html_page = urlopen(address)
15
html_text = html_page.read().decode("utf-8")
16
-soup = BeautifulSoup(html_text, features="html.parser")
+soup = BeautifulSoup(html_text, "html.parser")
17
18
# Exercise 2
19
# Parse out all the values of the page links
@@ -26,5 +26,5 @@
26
# Display the text in the HTML page of each link
27
link_page = urlopen(link_address)
28
link_text = link_page.read().decode("utf-8")
29
- link_soup = BeautifulSoup(link_text, features="html.parser")
+ link_soup = BeautifulSoup(link_text, s"html.parser")
30
print(link_soup.get_text())
0 commit comments