Git Product home page Git Product logo

hn-ratio's Introduction

HN Ratio

Hacker News top 50 stories ranked by Comment/Score ratio.

Why

Being a long-time Hacker News reader, I realized that most interesting HN submissions for me are of two categories:

  • stories that attract a lot of attention and comments, signaling active and extended debates
  • stories that attract a lot of attention but few comments, signaling very insightful post that requires no further comments

Hence, 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.

Result

Web App

Raw results by date

Note that new "promoted" stories with low votes and HN-backed job listings are filtered.

Why not use HN API in real time?

  • It takes some time to get all the data from Hacker News
  • HN API does not have archive for top stories in past, whereas I want an archive so that I can find what I missed

Currently I have a GitHub action job that runs daily at 20:00+8 to fetch the top stories.

How to run the script

$ pip install -r requirements.txt

Then

$ python hn-ratio.py

Result for the day will be generated in both json and plain text format (with basic visualization) in the results directory.

hn-ratio's People

Contributors

dependabot[bot] avatar paradite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hn-ratio's Issues

better date picker

now that it has been running for a long time, old date picker is no longer scalable. need a new way of selecting date.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.