Skip to main content

Abstraction to manage Google Alerts from code

Project description

The google-alerts Python module provides an abstract interface for the Google Alerts service. Google does not provide an official API for this service, so interactions are done through web scripting.

Quick Start

Install the library:

pip install google-alerts or python install

Save your configuration:

google-alerts setup --email <> --password 'password'

Create a monitor:

google-alerts create --term "hello world" --delivery 'rss'

List monitors:

google-alerts list

Delete a monitor:

google-alerts delete --id '89e517961a3148c7:c395b7d271b4eccc:com:en:US'

Sample Code

This sample code shows some of the range of functionality within the module:

from google_alerts import GoogleAlerts

# Create an instance
ga = GoogleAlerts('', '**password**')

# Authenticate your user

# List configured monitors

# Add a new monitor
ga.create("Hello World", {'delivery': 'RSS'})

# Modify an existing monitor
ga.modify("89e517961a3148c7:c395b7d271b4eccc:com:en:US", {'delivery': 'RSS', 'monitor_match': 'ALL'})

# Delete a monitor

Example Output

Below is an example monitor:

    "term": "hello world",
    "user_id": "09738342945634096720",
    "language": "en",
    "monitor_id": "89e517961a3148c7:c395b7d271b4eccc:com:en:US",
    "region": "US",
    "rss_link": "",
    "delivery": "RSS",
    "match_type": "BEST"


  • Add new monitors (RSS or Mail)
  • Modify existing monitors
  • Delete monitors by ID or term
  • List all monitors with details



  • Feature: Allow users to setup exact match queries
  • Change: Added support for Python3
  • Bugfix: Removed extra calls causing an error in the decrypt process


  • Feature: Added a command line utility to the code for easy testing
  • Bugfix: Removed clobbering error inside of delete routine

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for google-alerts, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size google_alerts-0.1.2-py3-none-any.whl (7.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size google-alerts-0.1.2.tar.gz (6.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page