njtool

1.3.0 • Public • Published

njtool - Tool for nature.com users

Version Build Status Windows Build Status Codacy Status Maintainability Status Coverage Status Known Vulnerabilities

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 your@email.address -p your_password -o /journals

Downloading multiple journals are supported:

$ njtool scrape journal nature:555:7695 nature:555:7696 | \
    njtool download -u your@email.address -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 your@email.address -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.

Package Sidebar

Install

npm i njtool

Weekly Downloads

10

Version

1.3.0

License

MIT

Unpacked Size

57 kB

Total Files

20

Last publish

Collaborators

  • masnagam