contributter-ranking-bot-0.1.2
توضیحات
Contributter Ranking Bot
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | contributter-ranking-bot-0.1.2 |
| نام | contributter-ranking-bot |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | ['eggplants'] |
| ایمیل نگهدارنده | ['w10776e8w@yahoo.co.jp'] |
| نویسنده | HARUTA (shuntatakemoto) |
| ایمیل نویسنده | rt80405@gmail.com |
| آدرس صفحه اصلی | https://github.com/eggplants/contributter-ranking-bot |
| آدرس اینترنتی | https://pypi.org/project/contributter-ranking-bot/ |
| مجوز | MIT |
# contributter-ranking-bot
[](
https://github.com/eggplants/contributter-ranking-bot/blob/main/LICENSE
) [](
https://pypi.org/project/contributter-ranking-bot/
) [](
https://codeclimate.com/github/eggplants/contributter-ranking-bot/maintainability
)
[](
https://github.com/eggplants/contributter-ranking-bot/actions/workflows/pages/pages-build-deployment
) [](
https://results.pre-commit.ci/latest/github/eggplants/contributter-ranking-bot/main
)
[](
https://github.com/eggplants/contributter-ranking-bot/actions/workflows/cron_test.yml
) [](
https://github.com/eggplants/contributter-ranking-bot/actions/workflows/cron.yml
) [](
https://github.com/eggplants/contributter-ranking-bot/actions/workflows/release.yml
)
- [Contributter](https://contributter.potato4d.me/) Ranking Bot for Twitter
- Forked from [shuntatakemoto/contributter-ranking-bot](https://github.com/shuntatakemoto/contributter-ranking-bot)
## Deployment on Twitter
- Original: [](https://twitter.com/_who_is_king_)
- → Forked: [](https://twitter.com/ContribRankBot)
## Installation
```sh
pip install contributter-ranking-bot
# or:
pip install git+https://github.com/eggplants/contributter-ranking-bot
```
## Tweet Format
```txt
✨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
```shellsession
$ 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
نیازمندی
| مقدار | نام |
|---|---|
| - | python-dotenv |
| - | requests-oauthlib |
| - | black |
| - | flake8 |
| - | isort |
| - | mypy |
| - | pre-commit |
| - | pylint |
| >=46.4.0 | setuptools |
| - | types-setuptools |
| - | black |
| - | flake8 |
| - | isort |
| - | mypy |
| - | pre-commit |
| - | pylint |
| >=46.4.0 | setuptools |
| - | types-setuptools |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl contributter-ranking-bot-0.1.2:
pip install contributter-ranking-bot-0.1.2.whl
نصب پکیج tar.gz contributter-ranking-bot-0.1.2:
pip install contributter-ranking-bot-0.1.2.tar.gz