Skip to content

Get pushover notifications when specific twitter accounts tweet.

License

Notifications You must be signed in to change notification settings

platelminto/tweet-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tweet-notifier

Get pushover notifications when specific twitter accounts tweet.

This is aimed at getting the notifications quickly (e.g. every minute). If this doesn't matter to you, maybe just use IFTTT (which has ~hour resolution, 1 account followed), or Zapier (~15 minutes, 5 accounts).

Requirements

Installation

Install requirements:

pip install -r requirements.txt

Copy config.json.example and auth.json.example to config.json and auth.json, respectively.

auth.json

  • twitter.bearer: A Twitter API application bearer token. You receive one once you create an app. You will easily fit within the free tier's limits.
  • pushover.app_token: A Pushover API application token. You also get one of these once you create a Pushover app, and can view it when logged in here.
  • pushover.user_key: Your Pushover user (or group) token.

config.json

  • twitter.users: list of Twitter handles of users you want to receive tweet notifications from.
  • pushover.device: device name (as set in your Pushover settings) to send notifications to. Leave blank to send to all devices.

Usage

Run main.py. On first run, nothing will happen. Each subsequent run, for every account specified in config.json, any tweets not previously seen will be sent to Pushover.

Run periodically on a VPS to avoid downtime.

About

Get pushover notifications when specific twitter accounts tweet.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages