Course Content
Web Scraping with Python
Web Scraping with Python
3. Working with Element Attributes in Beautiful Soup
Challenge: Read the HTML File
Task
Swipe to begin your solution
Open and read the HTML file on your own!
- Import the
urlopen
function from theurllib.request
. - Use the
urlopen()
function to open the page from the specifiedurl
. - Read the page and decode the received bytes object to
"utf-8"
.
Once you've completed this task, click the button below the code to check your solution.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 9
Challenge: Read the HTML File
Task
Swipe to begin your solution
Open and read the HTML file on your own!
- Import the
urlopen
function from theurllib.request
. - Use the
urlopen()
function to open the page from the specifiedurl
. - Read the page and decode the received bytes object to
"utf-8"
.
Once you've completed this task, click the button below the code to check your solution.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 9
Switch to desktop for real-world practiceContinue from where you are using one of the options below