Knowledge tools · Python · Aug 2025
Reddit saves to a Zettelkasten
I had years of saved Reddit posts and never went back to any of them. So I wrote a local pipeline that pulls them down, turns each into an atomic note, and links the notes by the ideas they share, the way Niklas Luhmann's slip-box worked. Obsidian draws the result as a graph.
The vault, live
333 real notes from the August 2025 export, with the 45 concepts they share most. Drag a node; hover or tap one to read it.
My saves weren't all work-related, so this shows the 333 from tech, study, career, film and iOS subreddits, with titles checked by hand. Only titles, subreddits and keywords are published; no post text, comments or usernames.
How it works
Python end to end, running on my own machine. Nothing goes to a server.
- ScrapePRAW signs in to Reddit with OAuth and pulls each saved post: title, body, top comments, media and metadata. 939 of 1,065 came back; 117 were refused (removed or private) and 9 hit server errors.
- Find the ideasTF-IDF picks the words that make each post distinctive, with its settings adjusted to the size of the collection. Heuristic tags (technical, problem, emotional, solution) and optional sentence-transformer embeddings add a second layer.
- LinkEvery keyword becomes a concept note with wikilinks both ways. Cosine similarity fills each post's "related" list, and keywords that appear together become concept-to-concept edges.
- WeighNetworkX scores every node by degree, betweenness, clustering and PageRank, combined into one weight that sets its size in the graph.
- GroupCommunity detection folds related concepts into "syndicates", so a thousand-node graph can be read as a handful of themes.
- Keep my editsEach note stores a hash of its source. A re-run only rewrites notes whose source changed, so anything I add by hand survives.
In Obsidian
The same vault, as Obsidian shows it.


What it gets wrong
From the export's own graph files.
- "Deleted User" names half the syndicates. Each syndicate is labelled with its most common terms, and author names were in the term list. Deleted accounts all share one name, so 9 of the 18 syndicates, including the five biggest, are called "Deleted User".
- URLs leak into the concepts.
https,com,png,webpandprevieware among the 25 most common concepts, because links were tokenised like words. Reddit'sx200b(an encoded blank line) shows up too. - Too many concepts. 3,427 concept notes for 667 posts. Many appear in only a few posts and make the full graph a hairball, which is the problem syndicates were meant to fix.
- Saves don't wait. 117 posts were already gone when I fetched them. A save is a link, not a copy.
- What I'd change: strip URLs and author fields before TF-IDF, keep only concepts above a minimum document count, and archive each post's text the day it's saved.