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
# Scrape a local html file for specific tags and their strings | |
from bs4 import BeautifulSoup | |
# Input the saved HTML location | |
file = r'/Users/bgs/Downloads/EAOnDemand.html' | |
# Create a BeautifulSoup object | |
soup = BeautifulSoup(open(file), 'html.parser') | |
# Include tags into the list, as required |