GithubHelp home page GithubHelp logo

seafarer-c / hacker-news-digest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from polyrabbit/hacker-news-digest

0.0 0.0 0.0 4.5 MB

:newspaper: Let ChatGPT Summarize Hacker News for You

Home Page: http://hackernews.betacat.io/

License: GNU Lesser General Public License v3.0

JavaScript 3.27% Python 61.83% CSS 1.31% Makefile 1.06% HTML 10.31% Jupyter Notebook 22.22%

hacker-news-digest's Introduction

Github Pages license PRs Welcome Hacker News

中文版

Hacker News Summary leverages AI technology to extract summaries and illustrations from Hacker News articles, providing a seamless news scanning experience.

Summaries are primarily generated by ChatGPT gpt-3.5-turbo model, and fallback to local GoogleT5 model when ChatGPT is not available.

Features

  • Clear and easily understandable summaries generated by our advanced AI assistant
  • Relevant illustrations make articles easily scannable and visually engaging
  • Common video sites, PDFs, and GitHub gists are seamlessly embedded
  • Flexibility to sort articles based on their points, comment count, or publication time
  • Filter the topN articles based on their points.
  • RSS feeds fully supported (#14, #19)
  • Local translation (Chinese)

Talk is cheap, show me the screenshot!

hn-summary

Emoji explained:

  • ❤️: point - upvotes received from the Hacker News community
  • 👤: user - Hacker News user who submitted this post
  • 🕘: submission time - a human-readable time indicating when the post was submitted
  • 💬: comment count - comments posted by the community, click to visit this comment page
  • 🔗: source of the news - where the news originated
  • 📰: summary model - which model is used to generate the summary, options are OpenAI, GoogleT5 and Prefix

How it works

Hacker News Summary is a static site hosted on GitHub Pages. It performs the following periodic actions:

  1. Parsing the Hacker News page to obtain a list of news articles
  2. Extracting the main content from each news article using a score algorithm
  3. Finding the most suitable illustration for each article and making a local copy
  4. Generating summaries of the article's content using OpenAI API or invoking a local model as a fallback when the API is unavailable
  5. Rendering a template that incorporates the illustrations and summaries, and deploying it to GitHub Pages

Localization

Translation is also performed by ChatGPT, with a single extra step in the prompt. Currently supported languages:

TODO

  • A better way to scrap websites (maybe PhantomJS & Selenium)
  • Also summarize comments (see discussions on Hacker News)
  • Switch to Hacker News API
  • A more beautiful home page (maybe in HTML9)
  • Discover an alternative local models for generating summaries
  • Sort articles by points/comments/time
  • Filter topN articles by points
  • RSS
  • Deploy on github pages
  • Have a good sleep !important

hacker-news-digest's People

Contributors

polyrabbit avatar mchangxin avatar dependabot[bot] avatar melroy89 avatar sitebase avatar itsjw avatar

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.