llm-newsletter-generator transforms a valid RSS feed into a "Newsletter" using AI models via PyTorch and Transformers; this is experimental.
Python
15
78 commits
updated Jul 6, 2025
llm-newsletter-generator is an experimental Python script designed to generate text-only newsletters from RSS feeds using AI via PyTorch and Transformers. AI is used to create "compelling" newsletter content based on the provided feed, title, and optional topic. llm-newsletter-generator currently processes templated prompts using configurable LLMs and summarizes with sshleifer/distilbart-cnn-12-6.
llm-newsletter-generator relies on the following dependencies:
transformers library for managing deep learning models.To install and use llm-newsletter-generator, follow these steps:
Clone the Repository: Begin by cloning the repository containing the llm-newsletter-generator to your local machine.
git clone https://github.com/samestrin/llm-newsletter-generator/
Navigate to the project directory:
cd llm-newsletter-generator
Install the required dependencies using pip:
pip install -r requirements.txt
To run the script, you need to provide two mandatory arguments: the feed (--feed-url) and the title of the newsletter (--title).
python llm_newsletter_generator.py --feed-url <feed_url> --title <newsletter_title> [--topic <newsletter_topic>] [--max <max_items>] [--output-filename <output_filename>] [--model <valid_model>]
-f, --feed-url URL of the feed [string] [required]
-t, --title Title of the newsletter [string] [required]
-to, --topic Topic of the newsletter [string]
--max Maximum number of items to [number]
process
-m, --model-name Model to use for text [string]
generation (microsoft,
meta-llama, snowflake,
dolphin)
-o, --output-filename Output filename [string]
-v, --version Display the version number [boolean]
Replace <feed_url> with the URL of the RSS feed you want to generate the newsletter from. Specify <newsletter_title> as the desired title for the newsletter. Optionally, you can include <newsletter_topic> to define a specific topic for the newsletter, <max_items> to limit the number of items included in your newsletter, to specify an output filename, or <valid_model>. Valid models are: dolphin, meta-llama, microsoft, and snowflake; microsoft is the default.
Contributions to this project are welcome. Please fork the repository and submit a pull request with your changes or improvements.
This project is licensed under the MIT License - see the LICENSE file for details.
llm-newsletter-generator transforms a valid RSS feed into a "Newsletter" using AI models via PyTorch and Transformers; this is experimental.
Python
15
78 commits
updated Jul 6, 2025
llm-newsletter-generator is an experimental Python script designed to generate text-only newsletters from RSS feeds using AI via PyTorch and Transformers. AI is used to create "compelling" newsletter content based on the provided feed, title, and optional topic. llm-newsletter-generator currently processes templated prompts using configurable LLMs and summarizes with sshleifer/distilbart-cnn-12-6.
llm-newsletter-generator relies on the following dependencies:
transformers library for managing deep learning models.To install and use llm-newsletter-generator, follow these steps:
Clone the Repository: Begin by cloning the repository containing the llm-newsletter-generator to your local machine.
git clone https://github.com/samestrin/llm-newsletter-generator/
Navigate to the project directory:
cd llm-newsletter-generator
Install the required dependencies using pip:
pip install -r requirements.txt
To run the script, you need to provide two mandatory arguments: the feed (--feed-url) and the title of the newsletter (--title).
python llm_newsletter_generator.py --feed-url <feed_url> --title <newsletter_title> [--topic <newsletter_topic>] [--max <max_items>] [--output-filename <output_filename>] [--model <valid_model>]
-f, --feed-url URL of the feed [string] [required]
-t, --title Title of the newsletter [string] [required]
-to, --topic Topic of the newsletter [string]
--max Maximum number of items to [number]
process
-m, --model-name Model to use for text [string]
generation (microsoft,
meta-llama, snowflake,
dolphin)
-o, --output-filename Output filename [string]
-v, --version Display the version number [boolean]
Replace <feed_url> with the URL of the RSS feed you want to generate the newsletter from. Specify <newsletter_title> as the desired title for the newsletter. Optionally, you can include <newsletter_topic> to define a specific topic for the newsletter, <max_items> to limit the number of items included in your newsletter, to specify an output filename, or <valid_model>. Valid models are: dolphin, meta-llama, microsoft, and snowflake; microsoft is the default.
Contributions to this project are welcome. Please fork the repository and submit a pull request with your changes or improvements.
This project is licensed under the MIT License - see the LICENSE file for details.