kiwix / kiwix-tools

Command line Kiwix tools: kiwix-serve, kiwix-manage, ...
https://download.kiwix.org/release/kiwix-tools/
GNU General Public License v3.0
433 stars 85 forks source link

Is there a way to access the search function directly from a script? #495

Closed Jcwscience closed 2 years ago

Jcwscience commented 2 years ago

I’m trying to use this in a program I’m working on, but I need a way to send the server a search phrase and receive the text of a few matching articles. Is this possible currently? If so how would I go about doing it?

mgautierfr commented 2 years ago

If you have a kiwix-serve working (assuming address 127.0.0.1) :

Or you can use kiwix-search/zimdump to do the search and dump the article content.