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
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.
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
Built Distribution
Hashes for arxiv_update_cli-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d61b0cbd70606a1f65176c24750943d9fbb11c8b2aac66e1335665218b41d91 |
|
MD5 | 5f0893d2fc1d2656b705c637c9985ad2 |
|
BLAKE2b-256 | 26d9611762d01af924b04a124da2f0740e1ff1a7f3ab5730ffaae4f6324385f2 |