A Python library to fetch and parse Google News feeds
Project description
news-google-api
A Python library to fetch and parse Google News feeds.
Installation
pip install news-google-api
Usage
As a library
from googlenews import GoogleNews
news = GoogleNews()
# Get top news
top_news = news.top_news()
# Get topic headlines
tech_news = news.topic_headlines('TECHNOLOGY')
# Search news
search_results = news.search('Python programming')
# Print results
for entry in top_news['entries']:
print(f"Title: {entry['title']}")
print(f"Link: {entry['link']}")
print(f"Published: {entry['published']}")
print("---")
Features
- Fetch top news from Google News
- Get headlines for specific topics
- Search for news articles
- Command-line interface for quick access to news
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Amos Maru
Acknowledgments
- Google News for providing the RSS feeds
- All contributors who help improve this library
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
news-google-api-0.1.5.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file news-google-api-0.1.5.tar.gz
.
File metadata
- Download URL: news-google-api-0.1.5.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4342b290c9dd66b93b8e7f906eb4f9b8b29c31ba98f6cfc6272664e8960ab40b |
|
MD5 | 0ad3a17c3745636ecf090a3220fb3a08 |
|
BLAKE2b-256 | 8b2c8058451b8c8f6a9e9525327bc06df1c3d64a238a8357049306f2358fdd34 |
File details
Details for the file news_google_api-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: news_google_api-0.1.5-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bac58391255e7b9dd8d40921450fe39bc427ae58e6cdec0c9d482e6f8fa0b251 |
|
MD5 | 90b97238987703f999935b9263584ddf |
|
BLAKE2b-256 | 3424f6576b59c0742c22849f45d596de5d0e2bd6d444973c446e7600ad5f978f |