gapmiss43 downloadsScrape comments from Hacker News posts and create markdown notes with threaded comments.
An Obsidian plugin that fetches and saves Hacker News comments as Markdown notes.
Install from community.obsidian.md
From Obsidian's settings or preferences:
Manually:
hackernews-comments folder to /path/to/vault/.obsidian/plugins/ or:
main.js, manifest.json & styles.css from the latest release/path/to/vault/.obsidian/plugins/hackernews-comments/path/to/vault/.obsidian/plugins/hackernews-commentsConvert usernames and timestamps to clickable links pointing to Hacker News profiles and specific comments.
Customize the date format for comment timestamps using moment.js formatting tokens. Default: YYYY-MM-DD, hh:mm:ss
Automatically open newly created notes in the editor.
Wrap HTML tags in comment content with backticks to preserve code examples and prevent HTML rendering.
Customize note filenames using template variables. Default: HN - {{title}} - {{date}}
Available variables:
{{title}} - Post title{{post-id}} - Post ID{{date}} - Current date (YYYY-MM-DD){{time}} - Current time (HH-MM-SS){{datetime}} - Date and time (YYYY-MM-DD-HH-MM-SS){{source}} - Source hostname or "Hacker News"HN - {{title}} - {{date}}Hacker News {{post-id}} - {{title}}{{date}} - {{source}} - {{title}}The plugin uses the Hacker News API as the primary data source with HTML parsing as a fallback. All network requests use Obsidian's native API to bypass CORS restrictions.
Content is sanitized during HTML-to-Markdown conversion to prevent script injection and ensure safe rendering.