Manual talk:Pywikibot/add text.py

Add Text to pages in Special:WantedCategories
The header says it all... Is it possible to add a specific text to all pages in Special:WantedCategories? --91.33.247.68 21:23, 23 September 2009 (UTC) (Felix)
 * You can use the cat parameter, multiple times, e.g.
 * but I don't know any way to refer on Special:WantedCategories or on any special page. --Plasmarelais 17:37, 29 September 2009 (UTC)
 * but I don't know any way to refer on Special:WantedCategories or on any special page. --Plasmarelais 17:37, 29 September 2009 (UTC)

Bot doesn`t see the article
Hello!

I got some troubles while using this bot on my own wiki-site. It starts normally, gets the category. Then following message comes:

%pagename%, %path% - i put it here instead of real names. May be I should "turn on" global bots on my wiki somehow? I have mediawiki 1.15.1, python 2.6.2, pywikipedia 7282 installed. I`ll be glad to get any help, `cause this is first time I use pywikipedia bots. 93.89.211.151 13:36, 24 September 2009 (UTC)
 * Is your bot running with global bot rights or with local bot rights? --Plasmarelais 17:50, 29 September 2009 (UTC)
 * Plasmarelais, thank you for attention. I can`t tell you such info, just because I don`t know, how to check it. Could you explain more properly what file I can get such info from?
 * It seems I didn't find out, what is meant with global bot. You say it's your own wiki, is it a wikia-wiki? Maybe these 2 pages may help, but I don't know more about it: and . Sorry --Plasmarelais 12:37, 5 October 2009 (UTC)
 * Thank you for trying to help. I`ve looked through these pages, but I still can`t understand, how do I turn these global bots on and do I realy need it to be done to solve my problem...--91.193.253.138 13:29, 5 October 2009 (UTC)
 * Updating to the 7492-version of pywikipedia fixes the problem.--91.193.253.138 21:52, 17 October 2009 (UTC)

Add text to empty pages
I've got a problem. I want to add a (long) text to ~150 pages. I've got a List of all these pages. Unfortunately it doesn't work.

Here is what I've tried so far (Do not punch me. The error logs prooves that I'm using windows -- and german...): C:\Users\damrau\Miniprogs\pywikipedia>python add_text.py -links:Spielwiese -text:"Test" Loading Benutzer Diskussion:-MM-... Benutzer Diskussion:-MM- doesn't exist, skip! Traceback (most recent call last): File "add_text.py", line 312, in    main File "add_text.py", line 308, in main (text, newtext, always) = add_text(page, addText, summary, regexSkip, regexS kipUrl, always, up, True) ValueError: need more than 2 values to unpack

Does anybody know how to solve this? I do not really understand the error message. --91.33.195.178 08:02, 5 October 2009 (UTC) (Felix)
 * Far as I know, add_text.py only works on existing pages. But you may use Pywikipediabot/pagefromfile.py to create those pages using a file that contains necessary information, which should easily be created from the list you already have. --Plasmarelais 08:13, 5 October 2009 (UTC)
 * Excuse my offtop. As I see, this problem is quite similar to the one I`ve got (see the previous topic). But in my situation I do have this pages on my wiki, but add_text.py doesn`t see them. Any idea about this? (Please, answer in previous topic).--91.193.253.138 11:15, 5 October 2009 (UTC)
 * There is a quite new version of this script. Did you download and replace this with the file in your pywikipedia directory? Maybe that will solve your problem --91.33.195.178 22:30, 5 October 2009 (UTC) (Felix)

No documented parameters
The readme/docs for this script do not include or state the core parameters that can be used. Currently it only says: These command line parameters can be used to specify which pages to work on: &params; So my question is... what parameters? --Ccornell 09:08, 20 November 2009 (UTC)

&params will work nicely, when you type add_text.py -help. It takes help from pagegenerators.py. Bináristell me 11:58, 4 March 2011 (UTC)

Why is this page moved to mw?
What was the reason to move this page from Meta to MediaWiki, while all the similar pages about various scripts are on Meta? Bináristell me 12:00, 4 March 2011 (UTC)

Merged content
This section, without the section header and the italic comments was here on mw.org before the import of the above content from meta What was the reason to move this page from Meta to here, while all the similar pages about various scripts are on Meta? Bináris 11:55, 4 March 2011 (UTC)
 * I didn't find the consensus but suggest to build the JavaScript library at the same place. JackPotte 10:06, 5 March 2011 (UTC)

This stuff is not related to JavaScript, and now it is disconnected from other Pywikibot scripts. Bináris 21:18, 16 March 2011 (UTC)

End merged content The above thread refers to the import of the add_text.py documentation when most other pages had not been imported. Now all pywikipediabot documentation and talk pages have been imported. The reason for the move is that the pywikipediabot scripts are maintained in the wikimedia subversion repository and therefore documentation for them belongs here on mw.org--Doug.(talk • contribs) 21:17, 18 December 2011 (UTC)