Page MenuHomePhabricator
Feed Advanced Search

Oct 13 2015

Tokencolour added a comment to T57102: listify to file option in category.py.

Thank you for your reply.
Redirection shall serve the purpose here. If others decide against it, -tofile will be a better option name.
I just wanted to confirm my part in the patch to come, i.e. you will amend the Formatter class to handle both non-talk and talk pages and I shall instantiate the newly amended class. Is this it?

Oct 13 2015, 7:46 PM · Patch-Needs-Improvement, Pywikibot, good first task, Pywikibot-category.py
Tokencolour added a comment to T57102: listify to file option in category.py.

would this pattern work?
$ python pwb.py listpages -listify:<path/to/directory>
I'll include subcategories and talkpages and the recurse property so that it yields almost all articles in the category as they appear when we pipe the results using CategoryListifyRobot into a webpage. Furthermore, as you suggest, I will properly integrate it with rest of the script i.e. I won't make a new class for it. I'll collect all the articles and write it into a file in the directory given in the arguments and I shall do both these things in the main function itself, but before a generator is invoked, since we won't need a generator for -listify option. Should I continue with this approach?

Oct 13 2015, 11:41 AM · Patch-Needs-Improvement, Pywikibot, good first task, Pywikibot-category.py

Oct 11 2015

Tokencolour added a comment to T57102: listify to file option in category.py.

Hello all,
I have got a class similar to CategoryListifyRobot working in listpages.py when invoked with argument '-listify'. What should I do next? Please guide me.

Oct 11 2015, 10:29 AM · Patch-Needs-Improvement, Pywikibot, good first task, Pywikibot-category.py

Oct 8 2015

Tokencolour added a comment to T57102: listify to file option in category.py.

Hello Mpaa,
Would it be okay, if I try to add the aforementioned capability, into listpages.py? It will be my first fix, (if I am able to do it).

Oct 8 2015, 6:35 PM · Patch-Needs-Improvement, Pywikibot, good first task, Pywikibot-category.py