Download Reddit archives from Arctic Shift and browse them locally with a Reddit-like UI powered by Datasette.
pip install -r requirements.txtEdit config.json to set which subreddits to download:
{
"subreddits": ["LocalLLaMA", "solarpunk", "ebikes"]
}Torrent (preferred — bulk download from the Arctic Shift top-40k dataset):
python3 download_torrent.pyAPI (for subreddits not in the torrent, or as a fallback):
python3 download.pyBoth scripts accept subreddit names as CLI args to override config.json:
python3 download.py solarpunk LocalLLaMApython3 to_sqlite.pyThis auto-discovers all downloaded data files (.jsonl from the API, .zst from the torrent) and imports them into data/reddit.db with full-text search.
datasette data/reddit.db -m metadata.json --template-dir=templates --static static:static./run.shDownloads via torrent, fills gaps via API, builds the database, and launches datasette.
config.json # subreddit list (shared config)
download_torrent.py # bulk download via Arctic Shift torrent
download.py # API download (fallback / smaller subs)
to_sqlite.py # build SQLite DB from downloaded data
metadata.json # datasette configuration
run.sh # full pipeline script
templates/ # custom datasette templates (Reddit-like UI)
static/reddit.css # custom styles
data/ # downloaded data + SQLite DB (gitignored)