Financial News Fetcher Custom Source
This folder contains a SAS Retrieval Agent Manager (RAM) custom source example that fetches recent technology-sector financial news, builds a daily PDF digest, and writes the PDF file to the configured RAM source.
How It Works
When executed, this source:
- Uses yfinance to get recent technology-sector news metadata
- Fetches each article URL and extracts paragraph text
- Cleans text for PDF compatibility
- Generates a dated PDF digest containing title, URL, publication date, summary, and extracted content
- Saves the generated PDF file to RAM using client.save_file
Files
- run.py: Custom source implementation.
- requirements.txt: Python dependencies for this source.
Output
The source writes a daily PDF in this format:
- /tmp/YYYY-MM-DD-tech-sector-news.pdf
The file is then uploaded to the RAM source through client.save_file.
Dependencies
- fpdf2
- yfinance
Notes and Caveats
- This source relies on external web content and network availability.