lfc

Crates.iolfc
lib.rslfc
version0.1.1
created_at2025-09-18 21:43:13.134843+00
updated_at2025-09-18 21:51:13.391948+00
descriptionSummarize Liverpool FC news
homepage
repositoryhttps://github.com/bbkingisking/lfc
max_upload_size
id1845451
size153,232
(bbkingisking)

documentation

README

lfc

Scrapes news about Liverpool FC from several websites, summarizes them using AI, and delivers the summaries via email and Telegram.

Example output

The news for Liverpool over the past 24 hours is mostly positive, showcasing the club's triumphant title win and the impactful performances of key players, despite some lingering concerns over player futures.

- Liverpool has officially secured the Premier League title after a thrilling 5-1 comeback victory against Tottenham Hotspur, marking their 20th league title and the first celebrated in front of fans at Anfield since 1990. 🎉🏆

- Mohamed Salah expressed that winning the title without Jurgen Klopp feels "way better," highlighting the special nature of this season's triumph and his impressive contributions to the team's success. 💪⚽️

- The midfield trio of Alexis Mac Allister, Dominik Szoboszlai, and Ryan Gravenberch have been pivotal, showing remarkable stability and performance throughout the season, contributing significantly to Liverpool's title charge. 🛠️

- Despite the title win, ongoing transfer speculation surrounds key players like Darwin Nunez, who is reportedly considering a move away from the club, raising questions about potential squad changes for next season. 🔄

- Liverpool's manager Arne Slot has received praise for his effective management style, enabling the team to thrive in the absence of previous stars, and is now focused on reinforcing the squad for the upcoming transfer window. 🌟

Installation

Make sure you have Rust installed, then:

  1. cargo install lfc

Config

The configuration lives in config.yaml file in XDG_CONFIG_HOME (so ~/.config/lfc/ on Unix). It looks like this:

api_key: OPEN-AI-API-KEY-HERE
model: gpt-4o-mini # or whichever OpenAI model you prefer, mini is usually sufficient
db_path: full_path # stores the scraped articles in SQLite
emails:
  - email_1
  - email_2

telegram_chat_ids:
  - chat_id_1
  - chat_id_2
  
telegram_bot_token: token_here
email_username: email_credentials
email_app_password: email_credentials

Tips

cron it on a daily schedule.

Commit count: 3

cargo fmt