eksi-sozluk-patch
v0.0.14eksi-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
// => finike portakalı
result.entries.length
// => 6
result.entries[0].content
// => finike'de ve finike çevresinde yetiştirilen iri, sulu washington portakalı.
});
More Options
sozluk({ title: 'finike portakalı', from: 25, to: 75 }, function(error, result){
result.entries.length
// => 50
})
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
// => 10
})
To get the number of the pages a topic has:
sozluk.pageCount('finike', function(error, result){
result
// => 7
})
Suggestions
sozluk.suggestions('linux', function(error, results){
results[1]
// => linux oyunları
results[3]
// => linux ile windows karşılaştırması
});