eksi-sozluk
NodeJS client to query Eksi Sozluk
Install
$ npm install eksi-sozluk
Command-line
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
})
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]
});