Skip to content

Instantly share code, notes, and snippets.

View firepear's full-sized avatar
🏳️‍🌈

Shawn Boyette firepear

🏳️‍🌈
View GitHub Profile
@firepear
firepear / gist:536000b35740820aa7a3487998547066
Last active February 16, 2018 02:07
Fetch your saved New York Times recipes
Step one: go to Your Recipe Box in the Cooking subsection of the Food section.
Step two: scroll to the bottom and click "Show More" until you actually have all the recipes displayed on the page.
Step three: Save the page
Step four:
#!/usr/bin/env python3
from html.parser import HTMLParser
class RecipeURLScraper(HTMLParser):