polyrabbit / hacker-news-digest

:newspaper: Let ChatGPT Summarize Hacker News for You
http://hackernews.betacat.io/
GNU Lesser General Public License v3.0
668 stars 87 forks source link
chatgpt chatgpt-api crawler data-extraction extract-summaries hacker-news hacker-news-digest hacker-news-reader machine-learning news-aggregator openai openai-api python rss spider

Let ChatGPT Summarize Hacker News for You

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

Talk is cheap, show me the screenshot!

hn-summary

Emoji explained:

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