{"id":15655665,"url":"https://github.com/paradite/hn-ratio","last_synced_at":"2025-04-15T21:23:31.199Z","repository":{"id":52147730,"uuid":"88998515","full_name":"paradite/hn-ratio","owner":"paradite","description":":arrow_up: Hacker News ranked by Comment/Score ratio","archived":false,"fork":false,"pushed_at":"2025-04-10T12:05:51.000Z","size":13678,"stargazers_count":26,"open_issues_count":3,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T13:44:33.501Z","etag":null,"topics":["d3","hacker-news","hn-api","hn-ratio","score-ratio","top-stories"],"latest_commit_sha":null,"homepage":"https://paradite.github.io/hn-ratio/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paradite.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-21T15:34:28.000Z","updated_at":"2025-04-10T12:05:55.000Z","dependencies_parsed_at":"2023-02-18T16:16:09.573Z","dependency_job_id":"9efa337a-734a-44dc-9ae9-474d7bab20d2","html_url":"https://github.com/paradite/hn-ratio","commit_stats":{"total_commits":2360,"total_committers":4,"mean_commits":590.0,"dds":"0.46525423728813564","last_synced_commit":"24b509e11ed8ac144addf76b6207dd65a064e5de"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradite%2Fhn-ratio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradite%2Fhn-ratio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradite%2Fhn-ratio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradite%2Fhn-ratio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paradite","download_url":"https://codeload.github.com/paradite/hn-ratio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249155147,"owners_count":21221549,"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":["d3","hacker-news","hn-api","hn-ratio","score-ratio","top-stories"],"created_at":"2024-10-03T13:00:17.205Z","updated_at":"2025-04-15T21:23:31.171Z","avatar_url":"https://github.com/paradite.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HN Ratio\n\nHacker News top 50 stories ranked by Comment/Score ratio.\n\n## Why\n\nBeing a long-time Hacker News reader, I realized that most interesting HN submissions for me are of two categories:\n\n- stories that attract a lot of attention and comments, signaling active and extended debates\n- stories that attract a lot of attention but few comments, signaling very insightful post that requires no further comments\n\nHence, I used the Comment/Score ratio to sort the top HN submissions and locate these stories at the top and the bottom of the list.\n\n## Result\n\n[Web App](https://paradite.github.io/hn-ratio/)\n\n[Raw results by date](https://github.com/paradite/hn-ratio/tree/master/results)\n\nNote that new \"promoted\" stories with low votes and HN-backed job listings are filtered.\n\n## Why not use HN API in real time?\n\n- It takes some time to get all the data from Hacker News\n- HN API does not have archive for top stories in past, whereas I want an archive so that I can find what I missed\n\nCurrently I have a GitHub action job that runs daily at 20:00+8 to fetch the top stories. \n\n## How to run the script\n\n`$ pip install -r requirements.txt`\n\nThen\n\n`$ python hn-ratio.py`\n\nResult for the day will be generated in both json and plain text format (with basic visualization) in the `results` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparadite%2Fhn-ratio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparadite%2Fhn-ratio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparadite%2Fhn-ratio/lists"}