Module Expr Str Assign NameStore Str Import alias Import alias Import alias identifier Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad orelse If NameLoad body Print BinOpMod Str NameLoad orelse Assign NameStore NameLoad If UnaryOpNot NameLoad body Print Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Print NameLoad
N/A N/A 
Script to extract all wiki page names a certain HTML file points to in
interwiki-link format

The output can be used as input to interwiki.py.

This script takes a single file name argument, the file should be a HTML file
as captured from one of the wikipedia servers.

Arguments:
-bare       Extract as internal links: [[Title]] instead of [[Family:xx:Title]]
-sorted     Print the pages sorted alphabetically (default: the order in which
            they occur in the HTML file)
 N/A __version__ $Id: e0ef11b7fd5d86d87f579e30416bb9935ce33cb4 $ N/A sys N/A re N/A wikipedia pywikibot N/A N/A N/A pywikibot stopme N/A R N/A N/A re compile /wiki/(.*?)" * N/A fn N/A N/A sorted False N/A list N/A N/A complete True N/A arg N/A N/A pywikibot handleArgs N/A N/A N/A N/A arg startswith -sorted N/A N/A sorted True N/A N/A N/A N/A arg startswith -bare N/A N/A complete False N/A N/A fn N/A N/A N/A Ignoring argument %s arg N/A N/A fn arg N/A N/A fn N/A N/A No file specified to get the links from N/A N/A N/A sys exit 1 N/A mysite N/A N/A pywikibot getSite N/A f N/A open fn r N/A text N/A N/A f read N/A N/A N/A f close N/A hit N/A N/A R findall text N/A N/A complete N/A N/A N/A N/A list append N/A N/A mysite linkto hit N/A N/A N/A N/A list append N/A [[%s]] hit N/A sorted N/A N/A N/A N/A list sort N/A page list N/A N/A page