wiki icon indicating copy to clipboard operation
wiki copied to clipboard

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

Open bonettimrc opened this issue 4 years ago • 2 comments

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

bonettimrc avatar Jan 06 '21 16:01 bonettimrc

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.

dijs avatar Apr 14 '21 19:04 dijs

I need more info!

purpshell avatar May 23 '21 11:05 purpshell