dijs / wiki

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

page.Tables() not returning certain table contents #106

Open divanvb opened 5 years ago

divanvb commented 5 years ago

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 returned with the page.tables() functions. It's weird!

URL for reproducing the issue: https://cod-esports.gamepedia.com/Evil_Geniuses

dijs commented 5 years ago

Sorry I have been late to reply here.

It looks like this wikimedia site uses a strange form of tables.

It does not follow the normal table code which the rest of wikipedia does.

So, it looks like I may have to parse both implementations separately...

I will try and figure out why this page is having issues.

Until then, be aware this type of "table" is now accessible in the wiki.page.lists() method

gavinr commented 4 years ago

I am having a similar (maybe the same?) issue.

Take this page as an example. It has three tables on it.

The second table works fine:

image

The third table works fine:

image

Issue with First Table

But the first table, though, does not work very well - I assume because it has the first "header" row: image