Skip to content

Instantly share code, notes, and snippets.

@michelkana
Created September 22, 2021 10:27
Show Gist options
  • Save michelkana/7b6793c018d951a1621db36be3f6855b to your computer and use it in GitHub Desktop.
Save michelkana/7b6793c018d951a1621db36be3f6855b to your computer and use it in GitHub Desktop.
import requests
from bs4 import BeautifulSoup
# read the content of the web page
PAGE_URL = "https://www.imdb.com/list/ls082599715/"
my_page = requests.get(PAGE_URL)
# parse the content as html
star_soup = BeautifulSoup(my_page.content, 'html.parser')
# print the html code
print (star_soup.prettify()[:])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment