Add news API integration and related configurations

- Update .env.example to include NEWS_API_KEY configuration
- Add newsapi-python dependency in pyproject.toml
- Implement NewsAPI class for fetching news articles
- Create Article model for structured news data
- Add tests for NewsAPI functionality in test_news_api.py
- Update pytest configuration to include news marker
This commit is contained in:
2025-09-29 15:15:18 +02:00
parent 2be9e0f319
commit badd3e2a6c
8 changed files with 91 additions and 1 deletions

View File

@@ -31,6 +31,9 @@ dependencies = [
# ✅ per interagire con API di exchange di criptovalute
"coinbase-advanced-py",
"python-binance",
# ✅ per interagire con API di notizie
"newsapi-python",
]
[tool.pytest.ini_options]