This package has been deprecated

Author message:

Deprecated

eksi-sozluk-patch

0.0.14 • Public • Published

eksi-sozluk Build Status

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ı
});

Readme

Keywords

none

Package Sidebar

Install

npm i eksi-sozluk-patch

Weekly Downloads

1

Version

0.0.14

License

BSD

Last publish

Collaborators

  • c0b41