Skip to main content

Fetch new articles on arXiv by keywords

Project description

Fetch new articles on arXiv by keywords and authors.

CLI tool to fetch new articles on arXiv in selected categories (e.g. quant-ph) filtered by keywords or authors. The updates can also be sent by email so that the script can be run automatically with cron.

The script will fetch the articles on arXiv that

  • were submitted/updated after the last update date (or the provided date, see --since option)

AND

  • belong to one of the categories

AND

  • (one of the authors is in the author list) OR (one of the keywords is in the title or abstract)

All the options are set in the configuration file. Note that keywords can contain spaces, e.g. machine learning.

Thank you to arXiv for use of its open access interoperability.

Dependencies

  • Python 3

  • feedparser

  • keyring (optional): Store password of email account in system keyring (for the --email option)

Install

The script can be installed with pip

$ pip install arxiv_update_cli

or by downloading the source code and running

$ python setup.py install

from within the folder.

For Archlinux users, there is a PKGBUILD file in packaging_archlinux/.

Launch

Execute arxiv-update-cli, or if the package is not installed, execute arxiv_update_cli.py with python.

Options:

-h, --help

show the help message and exit

-e, --email

send result by email using SMTP (you will be prompted for missing settings)

-s YYYY-MM-DD, --since YYYY-MM-DD

fetch update since YYYY-MM-DD 00:00

-c [FILE], --config [FILE]

config file to use or print path to default one and exit if no argument is provided

-v, --version

show version and exit

--log

show path to log file and exit

If no configuration file exists, one will be created. Then, you can edit the categories, keywords and authors fields and run the script again.

Automatic execution

Once the email setttings have been configured and the password saved in the keyring, regular executions of arxiv_update_cli can be scheduled. For instance, one can receive daily email updates at 9:30 on working days with the following crontab (Unix)

30 09 * * 1-5 arxiv-update-cli -e

Troubleshooting

Errors are logged in the file arxiv_update_cli.log in the system’s temporary folder. Use the --log option to display the path.

License

Copyright (c) 2022 Juliette Monsel

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Changelog

  • arxiv-update-cli 1.0.3

    • Set default config path to local folder if the script is not installed

  • arxiv-update-cli 1.0.2

    • Add comment field to the article summary

    • Color the article URL in blue like the DOI link in the terminal

  • arxiv-update-cli 1.0.1

    • Fix URL in PKGBUILD and setup.py

  • arxiv-update-cli 1.0.0

    • First release

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_update_cli-1.0.3.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arxiv_update_cli-1.0.3-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file arxiv_update_cli-1.0.3.tar.gz.

File metadata

  • Download URL: arxiv_update_cli-1.0.3.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for arxiv_update_cli-1.0.3.tar.gz
Algorithm Hash digest
SHA256 185dd83ed02ede6df86edcd41bc5d9d59e0fcc118dd4dbdc5e1320f2eb8bbca0
MD5 fea4574a98fb42a0b12c376949e0c20a
BLAKE2b-256 3d9201602cad56597e390f5f50a8aab4b52af3eb9136045aba776301215af017

See more details on using hashes here.

File details

Details for the file arxiv_update_cli-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for arxiv_update_cli-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ef742f56f65cb9920441197a4d20467bea81295823fe0f66d0cbf93b5a35d42c
MD5 7c114bf76be63996a32a9cfee4660dac
BLAKE2b-256 09fe4de5e387a8dec4305b8d96a9c6944911bf0475feb6fd9a9941043a05d632

See more details on using hashes here.

Supported by

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