Skip to main content

Abstraction to manage Google Alerts and output

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 setup.py install

Getting an instance:

ga = GoogleAlerts('your.email@gmail.com', '**password**')

Authenticating your user (does not support 2FA):

ga.authenticate()

Listing monitors:

ga.list()

Example monitor listing:

[{
    "term": "hello world",
    "user_id": "09738342945634096720",
    "language": "en",
    "monitor_id": "89e517961a3148c7:c395b7d271b4eccc:com:en:US",
    "region": "US",
    "rss_link": "https://google.com/alerts/feeds/09738342945634096720/9663349274289663466",
    "delivery": "RSS",
    "match_type": "BEST"
}]

Adding 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:

ga.delete("89e517961a3148c7:c395b7d271b4eccc:com:en:US")

Features

  • Add new monitors (RSS or Mail)

  • Modify existing monitors

  • Delete monitors by ID or term

  • List all monitors with details

Changelog

To be added.

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

google-alerts-0.0.1.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distributions

google_alerts-0.0.1-py2.7.egg (14.1 kB view hashes)

Uploaded Source

google_alerts-0.0.1-py2-none-any.whl (5.9 kB view hashes)

Uploaded Python 2

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