Patches item #3477090, was opened at 2012-01-21 12:06 Message generated for change (Tracker Item Submitted) made by phoenixca You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3477090...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Michael Thibault (phoenixca) Assigned to: Nobody/Anonymous (nobody) Summary: Minor improvements on add_text.py
Initial Comment: Added an open in browser option to confirmation dialogue (similar to replace.py ) and added a new -only arg (essentially the opposite of -except). If a page text doesn't match the -only regex given, it skips.
Example use: I added this while trying to clean-up a Wikia wiki. Wikia's RTE leaves [[File:Placeholder on pages often. With this addition, the bot can use -only:"[[File:Placeholder" -except:"{{image}}" -text:"{{image}}" -up , to add a meta tag to pages that have image placeholders, but not ones that already have the {{image}} tag.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3477090...
pywikipedia-bugs@lists.wikimedia.org