Skip to main content

Translate and post arXiv articles to various apps

Project description

arxiv-post

PyPI Python Test License

Translate and post arXiv articles to various apps

Installation

$ pip install arxiv-post
$ playwright install chromium

Usage

After installation, command line interface arxiv-post is available, 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 may be nice to regularly run the command by some automation tools such as GitHub Actions. Here is a live example in which daily (2 days ago) arXiv articles in astro-ph.GA and astro-ph.IM 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.6.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

arxiv_post-0.6.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file arxiv-post-0.6.1.tar.gz.

File metadata

  • Download URL: arxiv-post-0.6.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.10.0 Linux/5.11.0-1020-azure

File hashes

Hashes for arxiv-post-0.6.1.tar.gz
Algorithm Hash digest
SHA256 45287bce92095f2237f9d7772df54d243f6509b7e92bb3e9e592fb5a485be85e
MD5 1355a0e6dd53f7eee0d8fe0204700de1
BLAKE2b-256 5a998becc5e73f5ace38e09282f23e11021ce31046d373028f45476148808d0c

See more details on using hashes here.

File details

Details for the file arxiv_post-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: arxiv_post-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.10.0 Linux/5.11.0-1020-azure

File hashes

Hashes for arxiv_post-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d35e5f13aef703c938689d79d494317988768da46e9ec6bbefa4f417e8e778de
MD5 fb1e847590624da2b13a358e099eb637
BLAKE2b-256 c2551b6dcc6e350c6fa222da1390a8df5371fc46481aa8ad977208d9b3731fb4

See more details on using hashes here.

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