dijs / wiki

Wikipedia Interface for Node.js
MIT License
315 stars 61 forks source link

call to page.tables() doesn't return this type of table #149

Open bonettimrc opened 3 years ago

bonettimrc commented 3 years ago

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 i can't find a way to return the table data

dijs commented 3 years ago

Looks like this is a custom component in their MediaWiki.

The source for that table is as such:

{{Tabs|gatto|gatti|gatta|gatte}}

Our internal parser should be able to handle parsing that, but not as a table. I will look into it.

PurpShell commented 3 years ago

I need more info!