8 releases
0.1.7 | Dec 11, 2021 |
---|---|
0.1.6 | Apr 16, 2021 |
0.1.4 | Mar 29, 2021 |
#35 in #twitter
22 downloads per month
16KB
225 lines
Welcome to trans-arxiv-bot 👋
A Twitter bot that tweets translated arXiv paper summaries.
It's actually working on this Twitter account.
Install
cargo install trans-arxiv-bot
Usage
When activated, it will automatically fetch papers at regular intervals. And when the latest paper is posted, it will translate the summary and tweet it. To avoid continuous tweets, tweets will be sent at regular intervals.
trans-arxiv-bot
Several options can be specified in the command line arguments, as follows.
- Category
--category
[default:cs.CL
] - Source language for translation
--source-lang
[default:en
] - Target language for translation
--target-lang
[default:ja
] - How many minutes to update and tweet
--update-frequency
[default:15
]
You can also check this from trans-arxiv-bot --help
.
You will also need to set some values in the environment variables.
- Twitter
- API_KEY
- API_SECRET_KEY
- ACCESS_TOKEN
- ACCESS_TOKEN_SECRET
- translate
- TRANSLATE_URL (see: Google 翻訳 API を無料で作る方法 - Qiita and google_translate_api)
Alternatively, you can use Docker to run it. See docker-compose.yml and .env.sample for details.
Author
👤 moisutsu
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2021 moisutsu.
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator
Dependencies
~13–27MB
~382K SLoC