Metadata-Version: 2.1
Name: news-google-api
Version: 0.1.3
Summary: A Python library to fetch and parse Google News feeds
Home-page: https://github.com/AmosMaru/googlenews
Author: Amos Maru
Author-email: amosmaru10@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# PyNews-Google

A Python library to fetch and parse Google News feeds.

## Installation

```
pip install pynews-google
```

## Usage

### As a library

```python
from pynews_google 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("---")
```

### As a CLI

```
pynews-google top
pynews-google topic --topic TECHNOLOGY
pynews-google search --query "Python programming"
```

## 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

