eksi-sozluk ![Build Status](https://travis-ci.org/azer/node-eksi-sozluk.png?branch=master)
NodeJS client to query Eksi Sozluk
Install
$ npm install eksi-sozluk
Command-line
![](https://dl.dropbox.com/s/rc2wrv02gpkirj0/eksi.png)
API
sozluk = require('eksi-sozluk')
sozluk('finike portakalı', function(error, result){
result.title
result.entries.length
result.entries[0].content
});
More Options
sozluk({ title: 'finike portakalı', from: 25, to: 75 }, function(error, result){
result.entries.length
})
Search Words
sozluk({ title: 'finike portakalı', search:true, words:['bla','bla']}, function(error, result){
result.entries
})
To fetch specific pages:
sozluk.page('finike', 3, function(error, result){
result.entries.length
})
To get the number of the pages a topic has:
sozluk.pageCount('finike', function(error, result){
result
})
Suggestions
sozluk.suggestions('linux', function(error, results){
results[1]
results[3]
});
![](http://distilleryimage2.s3.amazonaws.com/3e14d1ae8e4711e2af7822000a1fb04e_6.jpg)