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.

0saves processed
0notes written
0concept notes
0concept links

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.

  1. 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.
  2. 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.
  3. 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.
  4. WeighNetworkX scores every node by degree, betweenness, clustering and PageRank, combined into one weight that sets its size in the graph.
  5. GroupCommunity detection folds related concepts into "syndicates", so a thousand-node graph can be read as a handful of themes.
  6. 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.

Obsidian graph with the huggingface concept highlighted and linked to the posts that mention it
Obsidian's graph view: one concept (huggingface) and every post linked to it.
One generated note: title, source link, tags and keyword weights
One generated note: front matter with tags, keywords and weights, then the post and its top comments.

What it gets wrong

From the export's own graph files.