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 packagefriends-> reports updates in the friendships from the selected users, it can also tweet them directly
info
friends
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file twitteralert-0.0.4.tar.gz.
File metadata
- Download URL: twitteralert-0.0.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5d80704a378bdc07a6b49cc82efb89f7e6c14630a3c9e0accc0417e0d9083f7
|
|
| MD5 |
ba4ad6872e41975aef233e1a5c731327
|
|
| BLAKE2b-256 |
850bffaa1529d3b0b015a0e74a6584627f6f72df21e544366d4be076502f20f6
|