Skip to content

Instantly share code, notes, and snippets.

View thundergolfer's full-sized avatar
👟
Loading...

Jonathon Belotti thundergolfer

👟
Loading...
View GitHub Profile
#!/usr/bin/env python3
"""
Sum Hacker News post karma (points) by domain for all story posts in a given year.
Data source: Hacker News Algolia Search API
https://hn.algolia.com/api
By default, common organizational domains (news sites, major platforms like GitHub,
Twitter, YouTube, etc.) are excluded to focus on individual/personal blogs.
"""
safetykit is a mini-library to demonstrate safety features designed for use in human-in-the-loop scripts.
Running scripts in production without safetykit features is like driving a car without a seatbelt.
Fasten your seatbelt, put on your helmet.
"""
import argparse
import hashlib