{"id":17025838,"url":"https://github.com/erohtar/redditSaver","last_synced_at":"2026-04-11T21:30:18.351Z","repository":{"id":65102578,"uuid":"563397416","full_name":"erohtar/redditSaver","owner":"erohtar","description":"Automatically Download Saved Reddit Posts \u0026 Comments as Markdown Notes (into Obsidian)","archived":false,"fork":false,"pushed_at":"2023-06-12T13:48:16.000Z","size":45,"stargazers_count":36,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2023-06-18T21:56:26.594Z","etag":null,"topics":["comments","json","markdown","notes","obsidian","posts","reddit","rss","save"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erohtar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-08T14:28:05.000Z","updated_at":"2023-06-18T17:54:44.000Z","dependencies_parsed_at":"2023-01-13T15:34:08.811Z","dependency_job_id":null,"html_url":"https://github.com/erohtar/redditSaver","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erohtar%2FredditSaver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erohtar%2FredditSaver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erohtar%2FredditSaver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erohtar%2FredditSaver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erohtar","download_url":"https://codeload.github.com/erohtar/redditSaver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219847867,"owners_count":16556343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["comments","json","markdown","notes","obsidian","posts","reddit","rss","save"],"created_at":"2024-10-14T07:30:03.849Z","updated_at":"2026-04-11T21:30:18.296Z","avatar_url":"https://github.com/erohtar.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# redditSaver\n**Automatically Download Saved Reddit Posts \u0026 Comments as Markdown Notes (into Obsidian)**\n\nSample output:\n![image](https://user-images.githubusercontent.com/5120628/200579098-6311b7f4-0a72-45df-9490-705c25bee720.png)\n\n\n## Features\n- YAML Frontmatter is downloaded along with the markdown formatted note - supports using it with **Dataview** plugin (see below)\n- Notes are saved in `reddit\\\u003csubreddit\u003e\\\u003cnote_title\u003e` hierarchy\n- Clickable link to the post/comment is added at the top of the note (besides being saved in Frontmatter)\n\n\n## Setup\n1. Go to [this url](https://ssl.reddit.com/prefs/feeds/) and copy this link:\n![image](https://user-images.githubusercontent.com/5120628/200579587-48bad4e3-e569-4417-a76c-3e88f2353fa7.png)\n\n2. Copy **settings.sample.json** to **settings.json** and udpate these values:\n\t- `jsonUrl` : Put above copied link\n\t- `rootPath` : Your notes target path (use double forward slashes)\n\t- `overWrite` : If you wish to overwrite your existing note files with latest downloads, set this to 1\n```\n{\n\t\"jsonUrl\": \"https://www.reddit.com/user/erohtar/saved.json?feed=xxxxxxxxx\u0026user=erohtar\",\n\t\"rootPath\": \"C:\\\\ObsidianVault\\\\Reddit\",\n\t\"overWrite\": 0\n}\n```\n\n3. Download ([optionally portable](https://github.com/garethflowers/nodejs-portable/)) **node.js** and run **redditSaver.js** with it:\n`\u003cpath\u003e\\node\\node.exe redditSaver.js`\n\n4. Done. Your notes should be created at the set path:\n`\u003cvault\u003e\\Reddit\\\u003csubreddit\u003e\\\u003ctitle\u003e__\u003cid\u003e.md`\n\n## Dataview Example\n![image](https://user-images.githubusercontent.com/5120628/209553135-5a5d9571-0773-4e48-a571-f1b14732b770.png)\n\nCreate a new note named **redditSaver** at the root of your Obsidian vault, and put this code there to get a nice table view of all your saved posts/comments:\n\n````\n```dataview\nTABLE WITHOUT ID \"[\" + title + \"](\" + file.path + \")\" AS \"Title\", type AS \"Type\", sub AS \"r/\"\nFROM \"Reddit\"\nSORT file.ctime DESC\n```\n````\n\n## Additional Notes\n- Reddit limits last 25 saved posts/comments in that feed\n- Scheduled running of this script once daily (or so) will keep your latest saves updated automatically\n- This is NOT an Obsidian plugin, and if someone wants to create one based on this idea or my code, they're more than welcome to\n- To save a reddit *crosspost*, go to the target post and save that instead of the link post (a habit I'll have to get into myself as well)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferohtar%2FredditSaver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferohtar%2FredditSaver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferohtar%2FredditSaver/lists"}