Skip to content

Instantly share code, notes, and snippets.

@kylegallatin
Created March 14, 2019 13:56
Show Gist options
  • Save kylegallatin/6495e907dde9a63b2cb8ae2a2338cbc5 to your computer and use it in GitHub Desktop.
Save kylegallatin/6495e907dde9a63b2cb8ae2a2338cbc5 to your computer and use it in GitHub Desktop.
import requests
from bs4 import BeautifulSoup as bs
# get the web page
r = requests.get("http://quotes.toscrape.com")
#use beautiful soup to structure the html
soup = bs(r.content)
# print the soup
soup.prettify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment