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.3.tar.gz (4.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: twitteralert-0.0.3.tar.gz
  • Upload date:
  • Size: 4.2 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.3.tar.gz
Algorithm Hash digest
SHA256 20387342db9dc0644601c38b701b4116b83f94bc7672b534903f2389f1342c3c
MD5 1f350f7bbfa3596321772faa10a4fe5f
BLAKE2b-256 50ea71d579ed0dececa95340ea40a537a6b48cebabf795901745dafe84a098c8

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