from bs4 import BeautifulSoup import requests url = "https://en.wikipedia.org/wiki/List_of_largest_companies_by_revenue" page = requests.get(url) soup = BeautifulSoup(page.text, 'html') print(soup)