Created
September 28, 2020 00:31
-
-
Save bradleysawler/22ab4536456a4461027d0e2aae172614 to your computer and use it in GitHub Desktop.
Had a list of videos to watch. Saved it to my local drive. Scraped the list of titles and pased it into OmniFocus
This file contains hidden or 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 | |
for tag in soup.find_all(['h2']): | |
print(tag.string) | |
# Copy from the terminal and paste into OmniFocus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment