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
Tweet Format
✨Contribution Ranking - {YYYY/MM/DD}✨
{prefix} {num}🟩: @{mention_interrupt}{name}
...
{prefix} {num}🟩: @{mention_interrupt}{name}
📊<[ppl: {contrib_n}👤, sum: {contrib_sum}🟩, avg: {avg:.2f}🟩]
#contributter_ranking
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ec59127792bd13fa25dbbe5facea93087c1ec898ea94780faa7831af5b1cc70 |
|
MD5 | 378997d474c4dd0cf46159ff66f5a773 |
|
BLAKE2b-256 | 62cb2ed629ccdb6543ae81a8898ddafd6d583c607d8594304a70154dbe1933b1 |
Close
Hashes for contributter_ranking_bot-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 314f1e1851d8080a74975c2b830db4314d9009a087294f8178472fa711eaefb8 |
|
MD5 | 4d3a8364e71c3044ce1d5cdca7b4dc0a |
|
BLAKE2b-256 | 7ef735efc51060383603c1a78553147713964abb81a5339dbafcb39faa476f2d |