Google News Fetcher¶
This utility provides a Google News headline scraper using the google-news-json package. It no longer requires any API keys, making it ideal for beginners who want to experiment with news-driven trading ideas or sentiment analysis without signing up for external services.
Quick Start¶
Follow the interactive prompts to:
- enter a company name or keyword (e.g., AAPL, stock market, inflation)
- choose a locale (default en-US)
- specify how many articles to retrieve (default 10)
Features¶
- Keyword-driven Google News search
- Locale support (language-country format such as
en-US,fr-FR) - Configurable number of headlines to display
- Beginner-friendly comments and console guidance
Files¶
fetchNews.js– interactive CLI script powered bygoogle-news-jsonpackage.json– dependency list (google-news-jsononly)
Notes¶
- Results are scraped from Google News RSS feeds. Availability may vary by region and topic.
- Google may rate-limit excessive requests. Keep usage reasonable.
- Extend the script by saving article data to CSV/JSON, or by integrating with the sentiment analysis utility in
UTILS - Sentiment Analysis on News/.
Related Learning Paths¶
- Beginner Python walkthroughs in
Documentation/Programs/level1_fundamentals.py - Sentiment analysis workflow in
UTILS - Sentiment Analysis on News/
License¶
MIT
Running it¶
More in Utilities & Tools¶
- Core Utilities: This folder contains core mathematical and date/time utilities that form the foundation for quantitative finance calculations.
- Currency Converter: This tool lets you convert between currencies using user-supplied exchange rates.
- Data Processing: This folder contains utilities for data processing, validation, and manipulation in financial applications.
- Economic Calendar: This tool lets you simulate and explore economic events (like FOMC meetings, CPI releases, etc.) and see how they might impact markets.
- Historical Data: A Node.js script that fetches historical bars (OHLCV data) for stocks or crypto from the Alpaca Market Data API.
- Logging: A pair of minimal, dependency-light logging utilities implemented in both Python and JavaScript.