Scopus / Scopus Cited By Search Tool

Users asking other users for AppleScripts that work with Bookends.
Post Reply
iandol
Posts: 465
Joined: Fri Jan 25, 2008 2:31 pm

Scopus / Scopus Cited By Search Tool

Post by iandol »

Bookends cannot interface directly with Scopus, due to Elsevier closing their API for small developers even if that developer's users do have institutional subscriptions. :|

As an individual you can register for a Scopus API key, and so I made a script which will take a selected reference in Bookends and search for that reference and (more importantly) the really useful Cited-By page. If your institution supports Scopus, then you can open these URLs directly.Otherwise you can still register for a free account and you get a limited version of the page.

I built this into my Alfred workflow, but it is a command-line script so you do not need Alfred to use it.

Code: Select all

>  scopusSearch -h
ScopusSearch V1.0.6
=======================
Pass a DOI and apiKey and get the Scopus URLs back
    -k, --key KEY                    API KEY?
    -d, --doi DOI                    DOI to search for?
    -s, --source database            scopus (default) or scidir?
    -a, --append [true]|false        append URLS to Bookends note
    -o, --open true|[false]          open URLs in browser?
    -h, --help                       Prints this help!
The easiest way to use this is select a reference in Alfred (it must have a DOI), then trigger the command via terminal or Quicksilver / Launchbar or other tool. You can pass the Scopus API key using the -k flag, or create an environment variable like so (replace XXXX with your key):

Code: Select all

> export scopusKey="XXXX"
With no key specified it will use the demo key, which may or may not work. In the following example scopusSearch will use the environment variable key, and the selection in Bookends and open the URLs in the browser:

Code: Select all

>  scopusSearch -o true

SCOPUS URL: https://www.scopus.com/inward/record.uri?partnerID=HzOxMe3b&scp=64549116740&origin=inward
SCOPUS CITED: https://www.scopus.com/inward/citedby.uri?partnerID=HzOxMe3b&scp=64549116740&origin=inward
Will try to write to ID=53783
Finished appending to the notes of ID=53783
Will open Scopus Links in browser...
Download it directly here...

Save it and move it somewhere in your path, and make sure it is executable. You can run either directly from the terminal or using your preferred launch system like Quicksilver, Keyboard Maestro or Launchbar etc.
Post Reply