Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Read the HTML File | Getting Acquainted with HTML
Web Scraping with Python
course content

Course Content

Web Scraping with Python

Web Scraping with Python

1. Getting Acquainted with HTML
2. Beautiful Soup: Part I
3. Beautiful Soup: Part II

Challenge: Read the HTML File

Give it a try - open and read the HTML file on your own!

Task

  1. Import the urlopen function from the urllib.request.
  2. Use the urlopen() function to open the page from the specified url.
  3. 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.

Task

  1. Import the urlopen function from the urllib.request.
  2. Use the urlopen() function to open the page from the specified url.
  3. 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.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 1. Chapter 9
toggle bottom row

Challenge: Read the HTML File

Give it a try - open and read the HTML file on your own!

Task

  1. Import the urlopen function from the urllib.request.
  2. Use the urlopen() function to open the page from the specified url.
  3. 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.

Task

  1. Import the urlopen function from the urllib.request.
  2. Use the urlopen() function to open the page from the specified url.
  3. 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.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 1. Chapter 9
toggle bottom row

Challenge: Read the HTML File

Give it a try - open and read the HTML file on your own!

Task

  1. Import the urlopen function from the urllib.request.
  2. Use the urlopen() function to open the page from the specified url.
  3. 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.

Task

  1. Import the urlopen function from the urllib.request.
  2. Use the urlopen() function to open the page from the specified url.
  3. 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.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Give it a try - open and read the HTML file on your own!

Task

  1. Import the urlopen function from the urllib.request.
  2. Use the urlopen() function to open the page from the specified url.
  3. 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.

Switch to desktop for real-world practiceContinue from where you are using one of the options below
Section 1. Chapter 9
Switch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt