A modern, interactive web application built with Streamlit that allows users to search and filter news articles from Google News.
-
Multiple Search Methods:
- Keyword-based search
- Topic-based search
- Custom date range search
-
Advanced Filtering Options:
- Language selection (supports multiple languages)
- Region-specific news
- Time period filtering
- Topic categories
-
Rich Content Display:
- News article titles
- Source information
- Publication dates
- Article descriptions
- Article images (when available)
- Direct links to full articles
-
User Interface:
- Clean, modern design
- Responsive grid layout
- Easy-to-use sidebar controls
- Image display with validation
- Clickable links to original articles
- Clone the repository:
git clone <repository-url>
cd google-news
- Install the required dependencies:
pip install -r requirements.txt
- Run the Streamlit app:
streamlit run gglnews.py
-
Open your web browser and navigate to the URL shown in the terminal (typically http://localhost:8501)
-
Use the sidebar to:
- Select your search method
- Choose language and region
- Set time period or date range
- Configure advanced options
-
Click the "Search News" button to fetch and display results
- Python 3.7+
- Streamlit 1.29.0+
- GoogleNews 1.6.12+
All dependencies are listed in requirements.txt
google-news/
├── README.md
├── requirements.txt
└── gglnews.py
-
Keyword Search
- Search for specific terms or phrases
- Results include both direct news and search results
-
Topic-based Search
- Pre-defined topics like World, Business, Technology
- Uses Google News topic IDs for accurate results
-
Custom Date Range
- Select specific start and end dates
- Flexible date range selection
- Sort results chronologically
- Show/hide images
- Adjust maximum number of results
- Multiple language support
- Region-specific filtering
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Streamlit
- News data provided by GoogleNews