A Twitter bot that tweets translated arXiv paper summaries.
It's actually working on this Twitter account.
cargo install trans-arxiv-bot
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.
👤 moisutsu
Give a ⭐️ if this project helped you!
Copyright © 2021 moisutsu.
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator