Skip to content

[Tor Version] A Happy and lightweight Python Package that Provides an API to search for articles on Google News and returns a JSON response.

License

Notifications You must be signed in to change notification settings

themetalleg/GNews-Tor

 
 

Repository files navigation

GNews-Tor

GNews-Tor is a lightweight Python package providing an API to search for articles on Google News. This version is tailored for use with Tor, enhancing privacy and efficiency in collecting articles as IP bans are circumvented. It's a Tor-compatible version of GNews.

Forked From

This project is a fork from GNews.

Installation

  1. Install Tor:

  2. Install GNews-Tor:

    pip install git+https://github.com/themetalleg/GNews-Tor.git

Usage

from GNews import GNews

google_news = GNews()
google_news.proxy = 'socks5h://localhost:9050'

# Now you can use the GNews API to search for articles
articles = google_news.get_articles('Python programming')

For more information visit the original project GNews.

About

[Tor Version] A Happy and lightweight Python Package that Provides an API to search for articles on Google News and returns a JSON response.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.7%
  • Dockerfile 0.3%