Feature Requests item #3601993, was opened at 2013-01-24 06:49 Message generated for change (Settings changed) made by n-fran You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3601993...
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: Closed
Resolution: None Priority: 5 Private: No Submitted By: Анима (n-fran) Assigned to: Nobody/Anonymous (nobody) Summary: add_text.py new function
Initial Comment: In Russian Wikipedia banned use spamremove.py without challenging the outcome of the administrators. Instead, after reflinks to the sites, which you can distribute Malware, now it is necessary to put the template {{search}}. I suppose that need to be automated with the help of a bot procedure of stamping template, because of links to external web site can be a lot.
It seems to me that you can add a new function in add_text.py because there is a parameter-weblinks. For example, I can add the desired me a text on all pages containing a link to the web site:
add_text.py -weblink:example.com -text:"{{ExampleTemplate}}"
But the text will be added to the end or the beginning of the page, and would like to see it added after each reference to a given site. Thanks.
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2013-01-24 13:17
Message: There is no parameter -weblink in add_text.py. You may either use replace.py or fixes.py for such a task. Or you may modify spamremove not to remove the links but replace it with a given template.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3601993...
pywikipedia-bugs@lists.wikimedia.org