Skip to main content

A package to alert from follower info in Twitter

Project description

Twitter alert

Twitter alert is part of the twitter alert ecosystem that uses a custom sqlite database and the access to the twitter platform through an API to log and track a list of users and their activity in friendships (aka users that one acount follows).

For each change detected within the resolution of the tracked data, twitter alert makes a tweet (or prints into the console) the update.

Quick start

To install the package you can either download it from pip or clone this repository and install it locally.

# from pip
pip install twitteralert

Once installed, check that the installation was correct running

$ talert info --version
Debug mode is off
twitteralert version: 0.0.1

Then, assuming that you already have a friends database from twitterobserver (friends.sqlite) and a secrets.json file your API credentials for your twitter account you can just run the following.

talert friends -d friends.sqlite -S state.json -s secrets.json

Note that the state.json file if not present will be generated but containing the last query in the database. Thus, you will need to run the tobserver again to generate a new query. You can also potentially make a state file manually.

Usage

The excutable contains multiple subcommands.

  • info -> displays information such as the version of the package
  • friends -> reports updates in the friendships from the selected users, it can also tweet them directly

info

friends

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

twitteralert-0.0.2.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file twitteralert-0.0.2.tar.gz.

File metadata

  • Download URL: twitteralert-0.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.5.0.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for twitteralert-0.0.2.tar.gz
Algorithm Hash digest
SHA256 56cecdc6fb69156d5c553319067833797a6e0984b58da31e774534ff042ff7ed
MD5 a4419da78b9957643d23001ea5b3bc49
BLAKE2b-256 ef4c9ef650610f5d0412e202f29202aafc9aa9f2b0fb1bee4deccf17539b5a39

See more details on using hashes here.

Supported by

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