Skip to main content

Translate and post arXiv articles to various apps

Project description

astro-ph

PyPI Python Test License

Translate and post arXiv articles to various apps

Installation

Use pip or other package manager to install the Python package.

$ pip install astro-ph

Usage

After installation, command line interface, astro-ph, is available, with which you can translate and post arXiv articles to various apps. Note that only slack app is currently available. In this case, you need to create a custom Slack app to get an URL of incoming webhook.

$ astro-ph slack --keywords galaxy,galaxies \
                 --categories astro-ph.GA,astro-ph.IM \
                 --language_to ja \
                 --webhook_url https://hooks.slack.com/services/***/***

The posted article looks like this.

astro-ph-slack.png

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

$ astro-ph slack --help

Example

It would be nice to regularly run the command by 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

astro-ph-0.3.1.tar.gz (8.9 kB view hashes)

Uploaded source

Built Distribution

astro_ph-0.3.1-py3-none-any.whl (10.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page