Hi,
I began to write a new module. First it showed no help. Then I wrote this
line in:
pywikibot.handleArgs() #for help
Now it displays global help, the contents between the first """ pair after
coding (that's OK), and below it:
> Sorry, no help available for apispec
>
Why does it write this once it has displayed help? My other script behaves
normally. I can't guess the difference.
--
Bináris
I did the same fix with wikipedia.postData() in r9846 and tested it while loggin in. It should work now.
btw. You should change the bots password. Thank for your confidence. I didn't need it but should remain confidential.
Regards
xqt
----- Original Nachricht ----
Von: Tom Hutchison <tom(a)hutch4.us>
An: info(a)gno.de
Datum: 29.01.2012 01:12
Betreff: Files from login.py attempt at ISOGG wiki
> Xqt
>
>
>
> Here are the reports from my login attempt with r9845. I ran login.py with a
> double -v.
>
>
>
> Thanks again.
>
>
>
> Tom
>
>
I was feeling lucky with the update and the one wiki I use Pywikipedia on.
So I ran generate_family_file.py, created the family file to it. Updated my config file. Did
everything the same as I did on the other wiki.
I even used a different file folder to keep them entirely separate .
Error, which was what the problem has always been with this wiki.
C:\ISOOGBot>version.py
Pywikipedia [http] trunk/pywikipedia (r9842, 2012/01/22, 00:51:55)
Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)]
config-settings:
use_api = True
use_api_login = True
unicode test: triggers problem #3081100
C:\ISOOGBot>login.py
unicode test: triggers problem #3081100
Password for user ISOGGWikiSuperbot on isoggbot:en:
Logging in to isoggbot:en as ISOGGWikiSuperbot via API.
Error downloading data: invalid literal for int() with base 10: '147, 147'
Request en:/w/api.php?
Retrying in 1 minutes...
I never could get this wiki to work with Pywikipedia, save for a very small time, about a month,
1 ½ years ago. It suddenly stopped working. Could never login to it again. Ideas on why this
wiki wont play with Pywikipedia?
Thanks
Tom
Additional to Merlijns mail please start again and wait until the bots api request is finished. It tries I guess 5 times and should then raise an error with trace informations. Also it creates a dump file named "ApiGetDataParse<something_else>". Please give us that dump file (content).
Regards
xqt
----- Original Nachricht ----
Von: Merlijn van Deen <valhallasw(a)arctus.nl>
An: Pywikipedia discussion list <pywikipedia-l(a)lists.wikimedia.org>
Datum: 26.01.2012 08:10
Betreff: Re: [Pywikipedia-l] Was feeling lucky- "Not" - still error on other
wiki
> >
> > Error downloading data: invalid literal for int() with base 10: '147,
> 147'
> > ****
> >
> >
> >
> could you try running login.py with the -v flag? This will give some more
> debug output, among others about the exact api.php queries and their
> responses.
>
> Secondary to that, if you could give the url to the wiki (i.e. it's not a
> private or local wiki), that would help with debugging /a lot/.
>
> Best,
> Merlijn
>
>
> --------------------------------
>
> _______________________________________________
> Pywikipedia-l mailing list
> Pywikipedia-l(a)lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>
Please update your bot first. Current release is r9843 and we couldn't examine that old stuff. As login.py worked as well, API is on. Please again create a new family file with the new release and try the command
login.py -test
This should determine whether the not is still logged in. If this does nothing, try
login.py -test -v
which prints additional I formations and give us the results and the new results of version.py too.
Regards
xqt
I have been running pywikiapedia on 1.16 for past year and a 1/2. Upgraded to 1.17 and it is now returning errors.
Do I need to upgrade pywikiapedia, what has changed in the API to break it?
Thanks
Tom
Hi guys,
I just installed the pywikipedia bot on my wiki yesterday. I'm new to Python but I can try learn it since I'm familiar with PHP. It would take me a while though to make this first bot since I'm new to the language. The tasks are pretty straightforward. I would like the bot to run without any user input and do all of this by itself:
1. For every page on the wiki, check if it has these three characters: ( , ) , : . Any page containing any of these characters (curly brackets and colon) will be moved to a new title. The original title is var_1.
2. For the new title, brackets are simply deleted, and the : (colon) is replaced with a " - " (a dash with a space on each side). The new title generated is var_2.
3. Insert this text at the top of this page: {{page_rename|var_1}}, and save page.
4. Find any existing links on the site to this page which would be in the format of [[var_1]], and change them to [[var_2|var_1]].
I don't need any menus or other functionality. Is something something pretty straightforward to make? I would appreciate any tips/help and if its something that can be made pretty easily, I would be really thankful if someone could do this for me or give me a good start.
I've looked at some of existing pywikipedia bot scripts (basic.py, movepages.py) but none of them would work for me and being new to Python, it would take me a long time to do what I need but in any case I will learn a lot in this first attempt.
thanks
Eric