You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import mwparserfromhell
import requests
r = requests.get('https://hu.wikipedia.org/wiki/Szerkeszt%C5%91:HerculeBot?action=raw').text
mwparserfromhell.parse(r).strip_code()
Actual behavior:
en:User:HerculeBot
ab:Алахәыла:HerculeBot
ace:Ureuëng Nguy:HerculeBot
af:Gebruiker:HerculeBot
ak:User:HerculeBot
als:Benutzer:HerculeBot
(and so on)
Expected behavior:
No content is returned, seeing as the page just consists of a template and many interwiki links meant to populate the "in other languages" menu and not the article body, and should therefore be filtered out by strip_code().
The text was updated successfully, but these errors were encountered:
Test case is this bot user page on Hungarian Wikipedia: https://hu.wikipedia.org/wiki/Szerkeszt%C5%91:HerculeBot?action=raw
To reproduce:
Actual behavior:
Expected behavior:
No content is returned, seeing as the page just consists of a template and many interwiki links meant to populate the "in other languages" menu and not the article body, and should therefore be filtered out by
strip_code()
.The text was updated successfully, but these errors were encountered: