# news-google-api
A Python library to fetch and parse Google News feeds.
## Installation
```
pip install news-google-api
```
## Usage
### As a library
```python
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
Raw data
{
"_id": null,
"home_page": "https://github.com/AmosMaru/googlenews",
"name": "news-google-api",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Amos Maru",
"author_email": "amosmaru10@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/8b/2c/8058451b8c8f6a9e9525327bc06df1c3d64a238a8357049306f2358fdd34/news-google-api-0.1.5.tar.gz",
"platform": null,
"description": "# news-google-api\n\nA Python library to fetch and parse Google News feeds.\n\n## Installation\n\n```\npip install news-google-api\n```\n\n## Usage\n\n### As a library\n\n```python\nfrom googlenews import GoogleNews\n\nnews = GoogleNews()\n\n# Get top news\ntop_news = news.top_news()\n\n# Get topic headlines\ntech_news = news.topic_headlines('TECHNOLOGY')\n\n# Search news\nsearch_results = news.search('Python programming')\n\n# Print results\nfor entry in top_news['entries']:\n print(f\"Title: {entry['title']}\")\n print(f\"Link: {entry['link']}\")\n print(f\"Published: {entry['published']}\")\n print(\"---\")\n```\n\n\n## Features\n\n- Fetch top news from Google News\n- Get headlines for specific topics\n- Search for news articles\n- Command-line interface for quick access to news\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Author\n\nAmos Maru\n\n## Acknowledgments\n\n- Google News for providing the RSS feeds\n- All contributors who help improve this library\n\n",
"bugtrack_url": null,
"license": null,
"summary": "A Python library to fetch and parse Google News feeds",
"version": "0.1.5",
"project_urls": {
"Homepage": "https://github.com/AmosMaru/googlenews"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3424f6576b59c0742c22849f45d596de5d0e2bd6d444973c446e7600ad5f978f",
"md5": "90b97238987703f999935b9263584ddf",
"sha256": "bac58391255e7b9dd8d40921450fe39bc427ae58e6cdec0c9d482e6f8fa0b251"
},
"downloads": -1,
"filename": "news_google_api-0.1.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "90b97238987703f999935b9263584ddf",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 4941,
"upload_time": "2024-09-25T21:37:57",
"upload_time_iso_8601": "2024-09-25T21:37:57.517728Z",
"url": "https://files.pythonhosted.org/packages/34/24/f6576b59c0742c22849f45d596de5d0e2bd6d444973c446e7600ad5f978f/news_google_api-0.1.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8b2c8058451b8c8f6a9e9525327bc06df1c3d64a238a8357049306f2358fdd34",
"md5": "0ad3a17c3745636ecf090a3220fb3a08",
"sha256": "4342b290c9dd66b93b8e7f906eb4f9b8b29c31ba98f6cfc6272664e8960ab40b"
},
"downloads": -1,
"filename": "news-google-api-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "0ad3a17c3745636ecf090a3220fb3a08",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4127,
"upload_time": "2024-09-25T21:37:59",
"upload_time_iso_8601": "2024-09-25T21:37:59.162992Z",
"url": "https://files.pythonhosted.org/packages/8b/2c/8058451b8c8f6a9e9525327bc06df1c3d64a238a8357049306f2358fdd34/news-google-api-0.1.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-25 21:37:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "AmosMaru",
"github_project": "googlenews",
"github_not_found": true,
"lcname": "news-google-api"
}