wiki
wiki copied to clipboard
Wikipedia Interface for Node.js
I use the following code: ``` import wiki from 'wikijs'; // ... const page = await wiki().page("Thirty Years' War"); const info = await page.info(); ``` This is the result: Results...
Sometimes we may need to use behind proxy, I add this functionality by passing additional `agent` options to `fetch`. We can pass a agent object (from `https-proxy-agent`) when we call...
Changing the return type of `Page#content` to the promise of an array of `PageSection` (a new interface). Return type was previously the promise of a string, which was incorrect. Resolves...
`Page.content()` is set to return a promise of a string, however this is not always the case. Sometimes (more often than not it seems) it returns a promise for an...
I tried `most viewed` function, it returned an Array of `title` and `viewCount`. I sent the title of returned value, and got the error `No article found`. I think it...
Take for example the Minecraft Wiki: https://minecraft.fandom.com As an example page: https://minecraft.fandom.com/wiki/Crafting_Table if you try to edit it, you can see the source and that it actually has infobox data:...
I was experiencing an issue where my site, which uses `HTTPS`, was throwing an error because the default url for the API is `HTTP`. Updating this to use `//` will...
the wiki is https://it.wiktionary.org/w/api.php, the call: ``` ... let data = await wiki({ apiUrl: 'https://it.wiktionary.org/w/api.php' }).page('gatto'); console.log(await data.tables()); ... ``` it prints [] I also tried with other methods, but...
Hi The `page.tables()` method doesn't return some table contents in the correct way. I've checked the page template and it seems similar to other pages that has all the content...