Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bonettimrc opened this issue Jan 6, 2021 · 2 comments
Open

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

bonettimrc opened this issue Jan 6, 2021 · 2 comments

Comments

@bonettimrc
Copy link

bonettimrc commented Jan 6, 2021

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
Copy link
Owner

dijs commented Apr 14, 2021

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
Copy link

I need more info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants