Skip to content

Instantly share code, notes, and snippets.

@tcope25
tcope25 / parse.py
Created September 27, 2023 16:38
python script to get mediavine travel bloggers
import urllib.request, json, csv
sellers = urllib.request.urlopen("https://www.mediavine.com/sellers.json")
data = json.load(sellers)
csv_file = "domains.csv"
sites = []
@tcope25
tcope25 / discover-titles.csv
Last active October 23, 2023 20:00
Google Discover Title/H1/Schema Stats
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 5 columns, instead of 1. in line 4.
URL,Page Title,H1 Headline,Schema headline,Used in Discover
https://www.seriouseats.com/best-home-coffee-roasters-7970613,"The Best Home Coffee Roasters of 2023, Tested and Reviewed",We Went Through More Than 5 Pounds of Beans Testing At-Home Coffee Roasters,We Went Through More Than 5 Pounds of Beans Testing At-Home Coffee Roasters,H1
https://www.npr.org/sections/health-shots/2023/10/17/1206283813/red-dye-food-products-fda-ban,Red dye 3 appears in many foods kids eat. Consumer advocates want FDA to ban it : Shots - Health News : NPR,FDA faces pressure to act nationwide on red dye in food,FDA faces pressure to act nationwide on red dye in food,Page title
https://www.kentucky.com/news/state/kentucky/article280609359.html,"Where copperheads, snakes go in the winter. Tips to keep away | Lexington Herald Leader","Where do KY’s copperheads, other snakes go in the winter? You’ll want to clean your yard","Where do KY’s copperheads, other snakes go in the winter? You’ll want to clean your yard",H1
https://www.usatoda