All Projects → azer → node-eksi-sozluk

azer / node-eksi-sozluk

Licence: other
NodeJS client to query Eksi Sozluk

Programming Languages

javascript
184084 projects - #8 most used programming language
PHP
23972 projects - #3 most used programming language

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

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].