1. Learn
  2. /
  3. Courses
  4. /
  5. Web Scraping in Python

Connected

Exercise

Requesting a Selector

We have pre-loaded the URL for a particular website in the string variable url and use the requests library to put the content from the website into the string variable html. Your task is to create a Selector object sel using the HTML source code stored in html.

Instructions

100 XP
  • Fill in the two blanks below to assign to create the Selector object sel which uses the string html as the text it inputs.