aledalgrande / newspaper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HackerNewspaper

HackerNewspaper is a Python package that curates and summarizes top stories from Hacker News. It's designed for tech enthusiasts, developers, and anyone who wants to stay updated with the latest technology and science news while avoiding certain topics.

  • mostly GPT generated

Installation

Before you start, ensure you have installed Python and Poetry on your machine.

To install the package, follow these steps:

  1. Clone the repository:
git clone https://github.com/aledalgrande/HackerNewspaper.git
  1. Navigate to the repository folder:
cd HackerNewspaper
  1. Install the package:
poetry install

Usage

To use HackerNewspaper, first, update your preferences in the preferences.yaml file. Define your interests and any topics you want to avoid.

Then, run the main script:

OPENAI_API_KEY=your_key poetry run python main.py

This will fetch the top 10 stories from Hacker News, score them based on your preferences, and generate a newspaper with the most relevant stories and comments.

Contributing

Contributions are always welcome! Please read the contribution guidelines first.

License

This project is licensed under the terms of the MIT license.

About

License:MIT License


Languages

Language:Python 87.7%Language:HTML 12.3%