A Python notebook for extracting news articles from Google News — built for journalists, researchers, and data scientists.
GoogleNewsScraper automates the retrieval of news articles from Google News based on custom queries, date ranges, and topics. It outputs structured data ready for analysis, NLP processing, or journalism workflows.
- Search Google News by keyword, topic, or category
- Filter results by date range and language
- Extract headlines, URLs, source names, and publication dates
- Export to CSV/JSON for downstream analysis
- Configurable delays to respect rate limits
git clone https://github.com/aeleraqi/GoogleNewsScraper.git
cd GoogleNewsScraper
pip install -r requirements.txt
jupyter notebook GoogleNewsScraper.ipynbquery = "artificial intelligence"
articles = scrape_google_news(query, max_results=50, language="en")
# Returns DataFrame with title, url, source, date- Python 3.8+
- requests, BeautifulSoup4, pandas
Author: Amr Eleraqi — Data Analyst | NLP Specialist | Machine Learning Expert | Educator
Affiliation: Toronto Metropolitan University, Ontario, Canada