Skip to content

Instantly share code, notes, and snippets.

Created March 20, 2020 20:10
What would you like to do?
import requests
from bs4 import BeautifulSoup
# url
# url = ""
url = ""
# Package the request, send the request and catch the response: r
r = requests.get(url)
# Extracts the response as html: html_doc
html_doc = r.text
# Create a BeautifulSoup object from the HTML: soup
soup = BeautifulSoup(html_doc)
# Print the response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment