Git Product home page Git Product logo

papermonk's Introduction

papermonk

Use papermonk to extract bibliographic data (including a link to the pdf) from publishers, while also downloading pdfs and journals, including supplementary materials.

install

With npm do:

npm install -g papermonk

Alternatively, install from git:

npm install git://github.com/kanzure/papermonk.git

or from a local git repo:

git clone [email protected]:kanzure/papermonk.git papermonk
cd papermonk/
npm install .

usage

var papermonk = require("papermonk");

var options = {
    pdf: true,
}

papermonk.download("http://httpbin.org/get", options, function(bibliodata, pdfstream) {
    console.log("metadata: " + bibliodata);
});

testing

node tests.js

TODO

  • in-browser tests (probably using browserify)

  • example module

  • example module testing

changelog

license

BSD

papermonk's People

Contributors

kanzure avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

papermonk's Issues

Testing the API

Hi thanks for your API it looks very interesting. I am trying to test it using your default code in the Readme but I am getting an error "No matching downloader available" I was trying to understand your test.js file but I can not figure it out. I assume I have to define a papermonk.downloader() somewhere but I dont know how. I also dont understand how to foward a query to the API. Do I need to install the papermonk-downloader-plosone to do this? Maybe I dont understand the way the API should work and thats why I am so confused. I understand that you pass a query parameter to the download function and it returns the results in the bibliodata object, isnt this true?

Thank you so much for your help in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.