Hi lovely Pywikibot folks. I'm the author of tor's python library [1] and recently decided to see what it's like to volunteer for this community instead.
I have a few newcomer questions...
1. This email list and #pywikibot are remarkably quiet (~2/month as compared with the 'handful a week' described by the wiki [2]). Does pywikibot have any other communication channels (say, to request a bot) with more activity?
2. I created a bot account with a BotPassword to give our readme's example a whirl but Wikipedia evidently blocks bot access to its sandbox page?
% cat demo.py import pywikibot site = pywikibot.Site('en', 'wikipedia') # The site we want to run our bot on page = pywikibot.Page(site, 'Wikipedia:Sandbox') page.text = 'hello world' page.save('pywikibot practice') # Saves the page
% python pwb.py demo.py Traceback (most recent call last): File "pwb.py", line 363, in <module> if not main(): File "pwb.py", line 355, in main run_python_file(filename, File "pwb.py", line 74, in run_python_file exec(compile(source, filename, 'exec', dont_inherit=True), File "./demo.py", line 5, in <module> page.save('pywikibot practice') # Saves the page File "/home/atagar/Desktop/pywikibot/core/pywikibot/tools/__init__.py", line 1452, in wrapper return obj(*__args, **__kw) File "/home/atagar/Desktop/pywikibot/core/pywikibot/tools/__init__.py", line 1452, in wrapper return obj(*__args, **__kw) File "/home/atagar/Desktop/pywikibot/core/pywikibot/page/__init__.py", line 1168, in save raise pywikibot.OtherPageSaveError( pywikibot.exceptions.OtherPageSaveError: Edit to page [[Wikipedia:Sandbox]] failed: Editing restricted by {{bots}}, {{nobots}} or site's equivalent of {{in use}} template CRITICAL: Exiting due to uncaught exception <class 'pywikibot.exceptions.OtherPageSaveError'>
Am I reading this error correctly? If so, maybe I could change our readme to something that works out of the box? If that would be ok, any tip on what it should demonstrate?
3. How do I run pywikibot's tests? I'd like to note the command on our development wiki [3].
Thanks! -Damian
[1] https://stem.torproject.org/ [2] https://www.mediawiki.org/wiki/Manual:Pywikibot/Communication#pywikibot [3] https://www.mediawiki.org/wiki/Manual:Pywikibot/Development