Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

amalgamatic-libguides

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amalgamatic-libguides

LibGuides plugin for amalgamatic

  • 4.1.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status

amalgamatic-libguides

LibGuides plugin for Amalgamatic

Installation

Install amalgamatic and this plugin via npm:

npm install amalgamatic amalgamatic-libguides

Usage

var amalgamatic = require('amalgamatic'),
    libguides = require('amalgamatic-libguides');

// Set the URL to point to your LibGuides search page
libguides.setOptions({url: 'http://guides.ucsf.edu/srch.php'});

// If there are additional URL parameters you want to specify, use the urlParameters option:
//    libguides.setOptions({urlParameters: {foo: 'bar', boo: 'baz'}};

// Add this plugin to your Amalgamatic instance along with any other plugins you've configured.
amalgamatic.add('libguides', libguides);

//Use it!
var callback = function (err, results) {
    if (err) {
        console.dir(err);
    } else {
        results.forEach(function (result) {
            console.log(result.name);
            console.dir(result.data);
        });
    }
};

amalgamatic.search({searchTerm: 'medicine'}, callback);

Requirements

This uses phantomjs to scrape the search page because the LibGuides API does not return the same results in the same order. Therefore, you must have phantomjs installed to use this plugin.

Keywords

FAQs

Package last updated on 02 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc