https://github.com/astropenguin/arxiv-post
:bulb: Translate and post arXiv articles to various apps
https://github.com/astropenguin/arxiv-post
arxiv python slack translation
Last synced: 9 months ago
JSON representation
:bulb: Translate and post arXiv articles to various apps
- Host: GitHub
- URL: https://github.com/astropenguin/arxiv-post
- Owner: astropenguin
- License: mit
- Created: 2021-01-18T05:45:08.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-05-07T15:11:38.000Z (about 3 years ago)
- Last Synced: 2025-03-21T04:04:48.597Z (over 1 year ago)
- Topics: arxiv, python, slack, translation
- Language: Python
- Homepage: https://astropenguin.github.io/arxiv-post
- Size: 2.94 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# arxiv-post
[](https://pypi.org/project/arxiv-post/)
[](https://pypi.org/project/arxiv-post/)
[](https://pepy.tech/project/arxiv-post)
[](https://doi.org/10.5281/zenodo.5633924)
[](https://github.com/astropenguin/arxiv-post/actions)
Translate and post arXiv articles to Slack and various apps
## Installation
```shell
$ pip install arxiv-post
$ playwright install chromium
```
## Usage
Command line interface `arxiv-post` is available after installation, with which you can translate and post arXiv articles to various apps.
Note that only `slack` app is currently available.
You need to [create a custom Slack app to get an URL of incoming webhook](https://slack.com/help/articles/115005265063-Incoming-webhooks-for-Slack).
```shell
$ arxiv-post slack --keywords deshima \
--categories astro-ph.IM \
--target_lang ja \
--slack_webhook_url
```
The posted article looks like this.

For detailed information, see the built-in help by the following command.
```shell
$ arxiv-post slack --help
```
## Example
It would be nice to regularly run the command by some automation tools such as GitHub Actions.
Here is a live example where daily arXiv articles in [astro-ph.GA](https://arxiv.org/list/astro-ph.GA/new), [astro-ph.IM](https://arxiv.org/list/astro-ph.IM/new), and [astro-ph.HE](https://arxiv.org/list/astro-ph.HE/new) are posted to different channels of a Slack workspace.
- [a-lab-nagoya/astro-ph-slack: Translate and post arXiv articles to Slack](https://github.com/a-lab-nagoya/astro-ph-slack)
## References
- [fkubota/Carrier-Owl: arxiv--> DeepL --> Slack](https://github.com/fkubota/Carrier-Owl): The arxiv-post package is highly inspired by their work.