An intelligent news automation system powered by Large Language Models (LLM).
AI-News-Agent automatically crawls news articles, analyzes content with AI models, and generates structured news reports.
Supported sources:
- BBC Chinese
- AIBase
Technologies:
- Requests
- BeautifulSoup
- Playwright
The system can automatically:
- Collect news titles
- Extract article URLs
- Crawl article content
- Store news data
Supports:
- DeepSeek API
- Qwen API
- OpenAI Compatible API
AI automatically generates:
- News summaries
- Importance scores
- Categories
- Keywords extraction
Output formats:
- SQLite database storage
- Markdown news reports
Using:
- SQLite
Stored information:
- News title
- URL
- Source
- Publication time
- Article content
- AI summary
- Keywords
- Category
Provides:
- News browsing interface
- AI analysis results
- News API service
Technologies:
- FastAPI
- SQLite
AI-News-Agent
├── crawler News crawling module
│
├── summary AI summarization module
│
├── web Web interface and API
│
├── data Data storage
│
├── scheduler.py Automated task scheduler
│
├── requirements.txt Python dependencies
│
└── README.md
git clone https://github.com/jeams11/AI-News-Agent.git
cd AI-News-AgentCreate an isolated Python environment:
python3 -m venv venvActivate virtual environment:
source venv/bin/activateInstall required Python packages:
pip install -r requirements.txtInstall Playwright browser:
playwright install chromiumEnter crawler directory:
cd crawlerRun BBC crawler:
python bbc.pyRun AIBase crawler:
python aibase.pyEnter summary directory:
cd summaryRun AI summarization:
python summarize.pyGenerated output:
news_report.md
Start web server:
python web/app.pyOpen browser:
http://127.0.0.1:8000
AI-News-Agent includes an automated scheduler.
The scheduler automatically performs:
- News crawling every hour
- AI news summarization every 12 hours
Run scheduler:
python scheduler.py| Technology | Purpose |
|---|---|
| Python | Core programming language |
| Playwright | Browser automation |
| BeautifulSoup | HTML parsing |
| SQLite | Database storage |
| FastAPI | Web API framework |
| OpenAI SDK | LLM integration |
| Qwen / DeepSeek | AI news analysis |
Main dependencies:
- Python 3.10+
- Playwright
- FastAPI
- SQLite
- OpenAI Compatible API
MIT License