https://github.com/sukiboo/sbn_arxiv
Retrieve and format submissions from arxiv.org into an html-file.
https://github.com/sukiboo/sbn_arxiv
arxiv email script
Last synced: 9 months ago
JSON representation
Retrieve and format submissions from arxiv.org into an html-file.
- Host: GitHub
- URL: https://github.com/sukiboo/sbn_arxiv
- Owner: sukiboo
- License: mit
- Created: 2019-06-17T01:17:48.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2025-04-18T12:39:36.000Z (over 1 year ago)
- Last Synced: 2025-06-04T12:46:42.034Z (about 1 year ago)
- Topics: arxiv, email, script
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# sbn_arxiv
Retrieve and format submissions from [arXiv.org](https://arxiv.org/) into an html-file.
### What it does
The purpose of this script is to simplify the process of keeping up-to-date with submissions from [arXiv.org](https://arxiv.org/).
Specifically, `sbn_arxiv` tracks the newly uploaded papers to the archives of interest and formats them into a convinient, easily-read html file, that can be opened in a browser or sent via email (e.g. to replace the regular arXiv subscription).\
For every paper of interest the script lists the title (that is also a link to the full pdf), tags, and authors:
html file generated by `sbn_arxiv` | default arXiv email
:---: | :---:
| 
### How to run it
- **Prerequisites.** Install the requirements listed in `requirements.txt`, e.g. `pip install -r requirements.txt`.
- **Customization.** Specify archives to be tracked and the regularity of retrievals in the `settings.ini` file.
- **Execution.** Run `sbn_arxiv.py` to generate an html file with the desired submissions: `python sbn_arxiv.py`.
The folder `html_files` will be created with the newly generated html file it.
- **Automation.** Optionally, set up a regular execution of the script, followed by emailing the generated html file.
That way you'll be receiving regular updates on arXiv submissions that are more readable than the default subscriptions.
For instance, I use the bash script
```bash
#!/bin/bash
# execute sbn_arxiv.py
python sbn_arxiv.py
# go to the directory containing html files
cd "html_files"
# get the latest HTML file
latest_file=$(ls -t *.html | head -1)
# if a file was created recently, send it in an email
if [ $(find "$latest_file" -ctime -0.1 | wc -l) -gt 0 ]; then
mail -a "Content-Type: text/html" -s "${latest_file%.*}" your@email < "$latest_file"
fi
```
and execute it regularly with crontab:
```bash
# retrieve and email arxiv submissions every weekday at 7:00am est
00 11 * * 1-5 cd "directory of the above script"; sh script.sh
```
### License
This project is licensed under the [MIT License](https://mit-license.org/).