Skip to content

Instantly share code, notes, and snippets.

View bradleysawler's full-sized avatar

Bradley Sawler bradleysawler

View GitHub Profile
@bradleysawler
bradleysawler / scrape_local_html.py
Created September 28, 2020 00:31
Had a list of videos to watch. Saved it to my local drive. Scraped the list of titles and pased it into OmniFocus
# 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