earwig / mwparserfromhell

A Python parser for MediaWiki wikicode
https://mwparserfromhell.readthedocs.io/
MIT License
741 stars 74 forks source link

How to get the contents of a page? #320

Closed LeMoussel closed 5 months ago

LeMoussel commented 5 months ago

Is it possible to extract/get the plain text of a page? For example as allows the API of the TextExtracts extension.

earwig commented 5 months ago

The intended API for this is strip_code(): https://mwparserfromhell.readthedocs.io/en/latest/api/mwparserfromhell.html#mwparserfromhell.wikicode.Wikicode.strip_codeOn Mar 26, 2024, at 4:56 AM, LeMoussel @.***> wrote: Is it possible to extract/get the plain text of a page? For example as allows the API of the TextExtracts extension.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>