Contributter Ranking Bot
Project description
contributter-ranking-bot
- Contributter Ranking Bot for Twitter
- Forked from shuntatakemoto/contributter-ranking-bot
Deployment on Twitter
Installation
pip install contributter-ranking-bot
# or:
pip install git+https://github.com/eggplants/contributter-ranking-bot
CLI Usage
$ crb -h
usage: crb [-h] [-k PATH] [-d DAY] [-w SEC] [-n N] [-q] [-D] [-V]
This command makes Contributter Ranking Bot easier to run.
optional arguments:
-h, --help show this help message and exit
-k PATH, --key PATH key file (default: None)
-d DAY, --day-before DAY n days before (default: 1)
-w SEC, --wait-sec SEC interval of retrieving tweets (default: 10)
-n N, --top-n N top n to tweet (default: 3)
-q, --quiet suppress log print (default: False)
-D, --dry-run tweet without mentions (default: False)
-V, --version show program's version number and exit
$ cat .twitter.key
CONSUMER_KEY="***"
CONSUMER_SECRET="***"
ACCESS_TOKEN="***"
ACCESS_TOKEN_SECRET="***"
$ crb -k .twitter.key
# Running Bot was successful!
# See at: https://twitter.com/satoch_bot/status/1517223447868448768
{
"created_at": "Thu Apr 21 19:27:13 +0000 2022",
...
}
# 5 days before, tweet top-five ranking
$ crb -d 5 -n 5 -k .twitter.key
License
MIT
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
Built Distribution
Close
Hashes for contributter-ranking-bot-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 106982abc20869f27c611251388d3289cd6532418e136ca454dd72f5b0160a87 |
|
MD5 | 8a60f4ed767f9bc22adaf2ebb01263b5 |
|
BLAKE2b-256 | aefb3b922f99b58e2fdd9b09f7949472893174d66759e311511a26b55f2493a0 |
Close
Hashes for contributter_ranking_bot-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 545c7171cc2c3b8d35dc622ceea50ed0ad750fa07b38b1b1d7674802b72408da |
|
MD5 | c59729081d13a3648eb137610f22b861 |
|
BLAKE2b-256 | 15a1a2093b843377bb399447ee3db6983671e91583fe36119c14f20422ff909f |