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.3.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

arxiv_post-0.6.3-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arxiv-post-0.6.3.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Linux/5.11.0-1028-azure

File hashes

Hashes for arxiv-post-0.6.3.tar.gz
Algorithm Hash digest
SHA256 603c16acd1e277b36b0e6262a79663d0d0b096e761e0ce255b669d40d5f8b5ae
MD5 b82159996b9c496fbe0bcaa00683b111
BLAKE2b-256 13342dfc5261024235e7f1285d723f3cdc0e11e9c7a972be9ccbacfed524824c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arxiv_post-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Linux/5.11.0-1028-azure

File hashes

Hashes for arxiv_post-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fa3292f7b70b5702799c5988c5f9ebad37b035367c002564a77467f6c696cc86
MD5 b424f3471d93e0c215241786f875c0a1
BLAKE2b-256 cf9eb4d43ec3aef3bed5deb62fa5453b5e35e8fc1162d386d101e4f2ee1103dc

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