Skip to main content

Translate and post arXiv articles to Slack and various apps

Project description

arxiv-post

Release Python Downloads DOI Tests

Translate and post arXiv articles to Slack and various apps

Installation

$ 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.

$ arxiv-post slack --keywords deshima \
                   --categories astro-ph.IM \
                   --target_lang ja \
                   --slack_webhook_url <Slack webhook URL>

The posted article looks like this.

arxiv-post-slack.png

For detailed information, see the built-in help by the following command.

$ 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, astro-ph.IM, and astro-ph.HE are posted to different channels of a Slack workspace.

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arxiv_post-0.7.0.tar.gz (8.3 kB view hashes)

Uploaded Source

Built Distribution

arxiv_post-0.7.0-py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page