njtool
v1.3.0
Published
Tool for nature.com users
Downloads
10
Maintainers
Readme
njtool - Tool for nature.com users
njtool
provides useful commands to operate on www.nature.com with Puppeteer.
How to use
A command below fetches PDF files of articles in "Nature Volume 555 Issue 7694", and saves them into /journals/nature/2018-03-01_555_7694:
$ njtool scrape journal nature:555:7694 | \
njtool download -u [email protected] -p your_password -o /journals
Downloading multiple journals are supported:
$ njtool scrape journal nature:555:7695 nature:555:7696 | \
njtool download -u [email protected] -p your_password -o /journals
Downloading journals of specific volumes:
$ njtool scrape volume --only-ids nature:555 nature:556 | \
njtool scrape journal | \
njtool download -u [email protected] -p your_password -o /journals
At this moment, njtool
supports only Nature. I have no plan to support other
journals. Because I have no plan to subscribe others.
njtool
works fine on macOS, Linux and Windows.
It's recommended for macOS users to use caffeinate
in order to prevent the
system from sleeping when you run njtool download
which typically takes a long
time.
$ njtool scrape journal nature:555:7697 | caffeinate -i njtool download ...
Linux users may need to run commands with the --no-sandbox
option.
See help for details of each command:
$ njtool help
License
This software is distributed under the MIT license. See LICENSE file for details.