HomePhabricator

Porting parser_function_count.py from compat to core/scripts

Description

Porting parser_function_count.py from compat to core/scripts

  • Added parsefunctioncount.py in core/scripts/ as part of Pywikibot:Compat to Core migration.
  • use SingleSiteBot, ExistingPageBot, NoRedirectPageBot classes
  • use collections.Counter to hold the result
  • Use magicwords for variable declaration via siteinfo.
  • Use doc_subpages infrastructure of core

Bug: T66878
Change-Id: I28aafa2aa2928b9585fc825523dfc17fb808e4f9

Details

Provenance
XqtAuthored on May 23 2020, 9:20 PM
Parents
rPWBCa4514109e621: [IMPR] Check for missing generator after setup() call
Branches
Unknown
Tags
Unknown
ChangeId
I28aafa2aa2928b9585fc825523dfc17fb808e4f9