Skip to main content

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 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("---")

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


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.4.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

news_google_api-0.1.4-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file news-google-api-0.1.4.tar.gz.

File metadata

  • Download URL: news-google-api-0.1.4.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

Hashes for news-google-api-0.1.4.tar.gz
Algorithm Hash digest
SHA256 51be26d7f44df5407821b753cd8729defe8417ad95a7703a1b96fa93804c9dd8
MD5 2bb62d5328903eedf1390dd1ca57a32f
BLAKE2b-256 fc7ac888b29e49c31d55d73ec7c02509c1c6ddc3de61e656cf2d2abe2b23da8b

See more details on using hashes here.

File details

Details for the file news_google_api-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for news_google_api-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6d247cf48b2ed2261ef6bf330a8194ed541e3148d51524dc90c00805e4f209ed
MD5 feee5734bff0b33bb967d3f2b9c10829
BLAKE2b-256 bd134841d36550f506e45f5ed9ab64e888fb57f65ddac0bd5c64795ef2c91199

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page