Page MenuHomePhabricator

Enable misspelling for a single misspelling page
Open, LowPublic

Description

misspelling.py works for all pages of a category or a template. I think it should also work for a single misspelling page too.

Event Timeline

Xqt triaged this task as Low priority.Nov 24 2016, 10:54 AM

@Xqt so normally you run it as "pwb.py misspelling.py -cat:<somecat>" and it works on all pages in that category. You want to run on a single page? Wouldn't that just be "pwb.py misspelling.py -page:<somepage>"?

If this is not what you want, please expand the task to make it more clear what you are looking for.

@Xqt so normally you run it as "pwb.py misspelling.py -cat:<somecat>" and it works on all pages in that category. You want to run on a single page? Wouldn't that just be "pwb.py misspelling.py -page:<somepage>"?

It is weird but this script really doesn't work for one page only

pagegenerators can be used with page instead of start. You can try this with python pwb.py listpages -page:'SomePage'.

I would like to help with this task, that doesn't seem very hard to apply, but I have an important doubt with the source code of this script. In the line 188 there is a call to the method run() from the class MispellingRobot but, where is that method? I don't see it in the source code. I understand everything except that. Could anyone clarify me this?

In the line 188 there is a call to the method run() from the class MispellingRobot but, where is that method?

It is defined [[ https://phabricator.wikimedia.org/diffusion/PWBC/browse/master/pywikibot/bot.py$1462 | in BaseBot ]]. ([[ https://phabricator.wikimedia.org/diffusion/PWBC/browse/master/scripts/solve_disambiguation.py$602 | MisspellingRobot inherits from DisambiguationRobot ]] which inherits from SingleSiteBot which inherits from BaseBot)

Thank you for the information @Dalba! If I find time to check this task, I will claim it.