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)