Created
March 14, 2019 13:56
-
-
Save kylegallatin/6495e907dde9a63b2cb8ae2a2338cbc5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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