-
Notifications
You must be signed in to change notification settings - Fork 17
Documentation of getpapers & ami
Radhu Ladani edited this page Jan 15, 2021
·
5 revisions
getpapers is a simple, powerful tool for querying repositories of scholarly articles using a simple one-line command.
- Open the windows-nvm repository in your internet browser.
- Download the nvm-setup.zip file for the most recent release.
- Once downloaded, open the zip file, then open the nvm-setup.exe file.
- The Setup-NVM-for-Windows installation wizard will walk you through the setup steps, including choosing the directory where both nvm-windows and Node.js will be installed.
- Once the installation is complete. Open Command Prompt and try using windows-nvm to list which versions of Node are currently installed (should be none at this point):
nvm ls
- Install the current release of
Node.js
(for testing the newest feature improvements):nvm install latest
- Install the latest stable LTS release of Node.js (recommended) by first looking up what the current LTS version number is with:
nvm list available
, then installing the LTS version number with:nvm install <version>
(replacing<version>
with the number, ie:nvm install 12.14.0
). - List what versions of Node are installed:
nvm ls
now you should see the two versions that you just installed listed. - After installing the Node.js version numbers you need, select the version that you would like to use by entering:
nvm use <version>
(replacing<version>
with the number, ie:nvm use 12.9.0
). - Verify which version of npm is installed with:
npm--version
, this version number will automatically change to whichever npm version is associated with your current version of Node.js.
Source of Instruction: ContentMine / getpapers
Steps in the Installation:
- Open Comand Prompt
- Run the command
npm install --global getpapers
Installation: Successful
Test of the Installation:
- Type
getpapers
in Command Prompt. - Usage and options displayed.
The tool was used to retrieve 200 papers on the topic, 'embelia ribes' with the output directory specified as 'example'.
Command used:
getpapers -q 'embelia ribes' -k 200 -o example
Results
- A new directory (example) created within the home directory.
- 200 folders (PMC###) created within 'example' each containing a JSON file (eupmc_result).
- 1 text file (eupmc_fulltext_html_urls) containing the URLs of all downloaded documents.
- 1 JSON file (eupmc_results) created.
Command line output
- 0 error messages.
- 2 warnings (
warn: This version of getpapers wasn't built with this version of the EuPMC api in mind; warn: getpapers EuPMCVersion: 5.3.2 vs. 6.5 reported by api
).