Skip to content
NodeJS client to query Eksi Sozluk
JavaScript PHP
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
docs
lib
.gitignore
.npmignore
.travis.yml
README.md
index.js
package.json
test.js

README.md

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

Something went wrong with that request. Please try again.