1.1.8 • Published 8 years ago

climber v1.1.8

Weekly downloads
32
License
ISC
Repository
github
Last release
8 years ago

Climber - "Why crawl when you can climb?!"

Climb wiki pages with this web crawler turned API or use it as Restful-API, information returned as JSON. Uses ZMQ to pipe the parsing of a wiki page from Python into chunks of data fed back to Node.js to be utilized as an API in your application or communicate to an evolving Restful-API implementation at:

#####https://chimeraapi.herokuapp.com/

Gathers context and text and stores these in relation to each other with level identifiers.

##Coming Soon Implementation of Automatic Summary attached to the returned JSON.

##Install

$ npm install zerorpc

$ npm install climber

##Basic API Usage

var c = require('climber');
//select depth option for how far the scraper is willing to go from the orgin page to gather more information in subsequent links for definitions and sub links on wikipedia. (Summary will be applied to these as well.)
climber = new c(5050);

//Topic must be declared for the first call made to climber the rest of the arguments are optional.

// topic: wolf, search depth set to 1, summary set to naive and returning a summary as part of the resulting JSON, images set to be included in returned json  
climber.climb({topic: 'wolf'(, depth: 1, summary: "naive", images: true)}, function(err, data){
  console.log(data);
});

// Note the shared topic
climber.climb_images({}, function(err, data){
  console.log(data);
});

// OR search a separate topic
climber.climb_images({topic: 'wolf'}, function(err, data){
  console.log(data);
});

climber.climb_links({}, function(err, data){
  console.log(data);
});

##Restful-API Usage

https://chimeraapi.herokuapp.com/wolf

https://chimeraapi.herokuapp.com/images/wolf

https://chimeraapi.herokuapp.com/links/wolf

TODO / Improvements

  • Implement climb of images and links on both RESTFUL-API and API.
  • Implement options to include link and images result in standard climb.
  • Clean up code.
  • Improve result set accuracy to ensure handling of various types of wiki pages and to handle disambiguation pages by returning useful information for the developer using the API as to how to construct a follow up query to the API.
  • Standard climb.
  • Report errors properly and helpfully on both RESTFUL-API and API.
  • Improve documentation.
  • Implement Naive Summary and add to resulting JSON returned for given page sections.
  • Add examples of JSON returned.
  • Create Mocha test Harness for basic functionality to be maintained and for testing.
  • Make this check if python script climber.py is runnign before initiating another spawn of it. pgrep -f climber.py
1.1.8

8 years ago

1.1.7

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.20

8 years ago

1.0.19

8 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago