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 created this task.Nov 24 2016, 10:54 AM
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.

Dvorapa added a subscriber: Dvorapa.EditedMay 18 2018, 4:59 PM

@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

PeterTheOne added a subscriber: PeterTheOne.EditedMay 18 2018, 8:35 PM

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

Ivanhercaz added a comment.EditedFeb 2 2019, 4:56 PM

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?

Dalba added a subscriber: Dalba.Feb 2 2019, 5:19 PM

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.