On Thu, Feb 2, 2023 at 10:30 PM Kunal Mehta <legoktm@debian.org> wrote:
You can use ?useskin=vector to fetch pages with the old HTML structure.

Or use ?action=render to get the content without a skin. If you are willing to update your selectors, you are probably better off with Parsoid though.
(There is also a library for traversing Parsoid HTML: https://github.com/wikimedia/parsoid-jsapi Not sure how well it's maintained though.)