External Exam Download Resources Web Applications Games Recycle Bin

First Scrape

first scrape.py

from bs4 import BeautifulSoup
import urllib.request #comes standard with python 3+

url = "https://digisoln.com/python/webscraping/intro.html"
page = urllib.request.urlopen(url)
soup = BeautifulSoup(page, features="html.parser")
print(soup.prettify())

Why Scrape?  ... if a a website does not provide an API