from requests import get from bs4 import BeautifulSoup as bs page = get("http://dataquestio.github.io/web-scraping-pages/simple.html") soup = bs(page.content, 'html.parser')