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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: arxiv-post-0.6.4.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.15.0-1014-azure

File hashes

Hashes for arxiv-post-0.6.4.tar.gz
Algorithm Hash digest
SHA256 3db7331e92b4bb50ee1449b544b986a592061c6306c7bf303a74518590ef3bf6
MD5 32b198cb41dd52e8b3751d40ac8296e1
BLAKE2b-256 6527d0c95138e9373b0fa7ac31239d976879f8ae110ba10eda3b594df4465cdb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arxiv_post-0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.15.0-1014-azure

File hashes

Hashes for arxiv_post-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5066402dd0f099d78a827cb5d553e2331ff29b2a2c2e7767649ae22a55478c26
MD5 648a68345a443e14b2d5d7ad178f3517
BLAKE2b-256 2f5ba370882059dd425d7415051fd3d55e0fa3d2c5aae68a04ab34be7034730d

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