forked from geek-cetas/node.isbn.net.in
-
Notifications
You must be signed in to change notification settings - Fork 0
simple nodejs library for isbn.net.in
License
kailashnath/node.isbn.net.in
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Note: This library will not be useful as the api on isbn.net.in is not json any more, it's an html page which keeps refreshing periodically so that it's background queues update it's view with latest prices. So we can't even do web scraping! :-( This library is a simple interface for isbn.net.in. For ex : Please have a look at test.js file. The library is built using nodejs event emitter. So all the function calls are asynchronous. The library supports only two events as of now. * err * success As the name suggests error is raised if any error occurs in the library and success on a successful operation. Events: * err : Triggers the callback with a parameter of type 'err' which has code and desc as its attributes * success : Triggers the callback whose parameter is a collection of 'Book' objects. Book has 3 attributes * vendor * price * url The collection 'Books' support simple operations such as: -> count() : Returns the number of vendors having the book -> cheapest() : Returns the cheapest vendor of all -> vendors() : Returns the list of vendors. -> Books['<vendor>'] : Can lookup directly on the class via vendor name. Ex : To look up for flipkart we can do Books['flipkart'] or Books.flipkart which returns a Book object. This library is released under BSD license and feel free to modify and play with it. In case of any issues and bugs please mail me at kailashnathreddy@ymail.com. Happy hacking !
About
simple nodejs library for isbn.net.in
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 100.0%