Skip to content

feat(entities): add Hacker News entity parser - #43

Open
praneshnikhar wants to merge 2 commits into
nossa-y:mainfrom
praneshnikhar:feat/hackernews-parser
Open

feat(entities): add Hacker News entity parser#43
praneshnikhar wants to merge 2 commits into
nossa-y:mainfrom
praneshnikhar:feat/hackernews-parser

Conversation

@praneshnikhar

Copy link
Copy Markdown

Deterministic URL parser for news.ycombinator.com.

Parses HN URLs into typed page references:

  • / → feed
  • /item?id=N → post
  • /user?id=N, /threads?id=N → profile
  • /from?site=X → search
  • /newest, /front, /ask, /show, /best, /active → feed
  • /jobs → jobs
  • /submit → submit

8 new tests covering all URL shapes. Updated README with HN in the supported-parsers list.

nossa-y and others added 2 commits August 3, 2026 13:57
Parse news.ycombinator.com URLs into typed page references:
- / -> feed
- /item?id=N -> post
- /user?id=N, /threads?id=N -> profile
- /from?site=X -> search
- /newest, /front, /ask, /show, /best, /active -> feed
- /jobs -> jobs
- /submit -> submit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants