I tried to list the cells in a table row with __children__ as written at https://mwparserfromhell.readthedocs.io/en/latest/api/mwparserfromhell.nodes.html#mwparserfromhell.nodes.Node
This is a very ugly playing code that iterates on all table rows, then after the for loop it repeats the last row, then iterates its children. Result: the last row is repeated on screen. So all the children of a tr is itself, not table cells. for row in wikicode.ifilter_tags(matches=lambda tag: tag.tag.lower()=="tr"): print(row) print('__') print('______') print(row) for elem in row.__children__(): print(elem) print('__')
_______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org