Hi!
My old problem is that repalce.py can't write the pages to work on into a
file on my disk. I have used a modificated version for years that does no
changes but writes the title of the involved pages to a subpage on Wikipedia
in automated mode, and then I can make the replacements from that page much
more quickly than directly from dump or living Wikipedia. This is slow and
generates a plenty of dummy edits.
In other words, replace.py has a tool to get the titles from a file (-file)
or from a wikipage (-links), but has no tool to generate this file.
Now I am ready to rewrite it. This way we can start it and the bot will find
all the possible articles to work on and save the titles without editing
Wikipedia (and without artificial delay), meanwhile we can have the lunch or
run a marathon or sleep. Then we make the replacements from this with -file.
My idea is that replace.py should have two new parameters:
-save writes the results into a new file instead of editing articles. It
overwrites existing file without notice.
-saveappend writes into a file or appends to the existing one.
OR:
-save writes and appends (primary mode)
-savenew writes and overwrites
The help is here:
http://docs.python.org/howto/unicode.html#reading-and-writing-unicode-data
So we have to import codecs.
My script is:
articles=codecs.open('cikkek.txt','a',encoding='utf-8')
...
tutuzuzu=u'# %s\n' %page.aslink() <-- needs rewrite to the new syntax
articles.write(unicode(tutuzuzu)) <-- needs further testing, if nicode() is
really needed
articles.flush()
It works fine except '\n' is a unix-styled newline that has to be converted
by lfcr.py in order to make it readable with notepad.exe.
This is with constant filename, that should be developed to get from command
line.
Your opinions before I begin?
--
Bináris
I want to read a special page with Page.get(). The message is:
File "C:\Program Files\Pywikipedia\wikipedia.py", line 601, in get
raise NoPage('%s is in the Special namespace!' % self.aslink())
pywikibot.exceptions.NoPage
What is the solution?
--
Bináris
Hello all,
*As several people have mentioned they had trouble starting with the rewrite
branch, I decided to do a step-by-step log of installing the rewrite in a
way that is good for developing -- this means you are able to edit the
framework files, while not inflicting any changes on other users (or other
bots you run!) of the system. By using setup.py develop, edits you make to
the framework will immediately be used (no need to setup.py install them),
but only within the virtualenv.*
*This is the windows version of my earlier email*
*
*
I do not run python on windows, so this is a tutorial that starts with
installing python. It's a bit rougher than the unix one, as I did not want
to spend too much time on it.
1. Install python 2.7
http://python.org/ftp/python/2.7.1/python-2.7.1.msi<http://python.org/download/>
(do
*not* use the 64-bit version, due to http://bugs.python.org/issue6792 )
2. Install Setuptools
http://pypi.python.org/pypi/setuptools#files
3. Install Virtualenv
start/run: cmd
c:\Python27\Scripts\easy_install.exe virtualenv
4. create a virtualenv for pwb
C:\Users\valhallasw>c:\Python27\Scripts\virtualenv.exe pywikibot
New python executable in pywikibot\Scripts\python.exe
Installing setuptools.....................done.
5. Go to C:\Users\valhallasw\pywikibot and use tortoisesvn to get the
rewrite
6. create a shortcut to cmd /k
c:\users\valhallasw\pywikibot\scripts\activate.bat
with working path C:\Users\valhallasw\pywikibot\rewrite
7. Use the shortcut. You now have a new cmd.exe window
8. python setup.py develop
Your default user directory is
"C:\Users\valhallasw\AppData\Roaming\pywikibot"
How to proceed? ([K]eep [c]hange)
change, to c:\users\valhallasw\pywikibot\conf\
Answer 'y' to the warning prompt (not 'yes')
Do you want to copy files: y
[note: I copied my unix user-config.py to c:\users\valhallasw\pywikibot]
Path to existing wikipedia.py? C:\Users\valhallasw\pywikibot
NOTE: user-config.py already exists in the directory
Create user-fixes.py file? ([y]es, [N]o) n
(pywikibot) C:\Users\valhallasw\pywikibot\rewrite>echo SET
PYWIKIBOT2_DIR=c:\users\valhallasw\pywikibot\conf>> ..\Scripts\activate.bat
(DON'T put a space between f and >>!)
Close the window, and
9. Use the shortcut from (7) again
You should now have a cmd.exe with a working pywikibot setup!
(pywikibot) C:\Users\valhallasw\pywikibot\rewrite\scripts>python touch.py
Gebruiker:Valhallasw
Retrieving 1 pages from wikipedia:nl.
Page [[Gebruiker:Valhallasw]] saved
NOTE: you *must* use 'python' in front of the script name, or python will
not find the pywikibot directory.
Good luck!
Merlijn
Hi folks!
I create pages for Hungarian Wikipedia like
http://hu.wikipedia.org/wiki/Wikipédia:Kért_cikkek/fr,
http://hu.wikipedia.org/wiki/Wikipédia:Kért_cikkek/en etc. These collect
Hungary-related articles from other Wikipedias that have no Hungarian
interwiki. Either they must be supplied with an iw or they are a good idea
to write new articles.
First I collect all the pages with replace.py, then I upload them and
process the list with a newly developed script which I will soon offer for
Pywikipedia because it can be used in other Wikipedias.
Itt successfully ran in en, fr, ro wikis but stopped in eswiki.
My command:
*replace.py -catr:Hungría . @ -lang:es -excepttext:"[[hu:"
-savenew:magyarok.txt -always*
The error message follows here. As far as I understand it comes from Python
rather than pywiki, but could we somehow handle it?
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 167, in
_getContentsNaive
for item in page._getContentsNaive(recurse=True):
File "C:\Program Files\Pywikipedia\catlib.py", line 164, in
_getContentsNaive
for tag, page in self._parseCategory(startFrom=startFrom):
File "C:\Program Files\Pywikipedia\catlib.py", line 215, in _parseCategory
data = query.GetData(params, self.site())
File "C:\Program Files\Pywikipedia\query.py", line 132, in GetData
jsontext = json.loads( jsontext )
File "C:\Program Files\Pywikipedia\simplejson\__init__.py", line 262, in
loads
return _default_decoder.decode(s)
File "C:\Program Files\Pywikipedia\simplejson\decoder.py", line 251, in
decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files\Pywikipedia\simplejson\decoder.py", line 268, in
raw_de
code
obj, end = self._scanner.iterscan(s, **kw).next()
File "C:\Program Files\Pywikipedia\simplejson\scanner.py", line 50, in
itersca
n
rval, next_pos = action(m, context)
File "C:\Program Files\Pywikipedia\simplejson\decoder.py", line 138, in
JSONOb
ject
value, end = iterscan(s, idx=end, context=context).next()
File "C:\Program Files\Pywikipedia\simplejson\scanner.py", line 50, in
itersca
n
rval, next_pos = action(m, context)
File "C:\Program Files\Pywikipedia\simplejson\decoder.py", line 138, in
JSONOb
ject
value, end = iterscan(s, idx=end, context=context).next()
File "C:\Program Files\Pywikipedia\simplejson\scanner.py", line 50, in
itersca
n
rval, next_pos = action(m, context)
File "C:\Program Files\Pywikipedia\simplejson\decoder.py", line 171, in
JSONAr
ray
value, end = iterscan(s, idx=end, context=context).next()
File "C:\Program Files\Pywikipedia\simplejson\scanner.py", line 50, in
itersca
n
rval, next_pos = action(m, context)
File "C:\Program Files\Pywikipedia\simplejson\decoder.py", line 138, in
JSONOb
ject
value, end = iterscan(s, idx=end, context=context).next()
File "C:\Program Files\Pywikipedia\simplejson\scanner.py", line 50, in
itersca
n
rval, next_pos = action(m, context)
File "C:\Program Files\Pywikipedia\simplejson\decoder.py", line 113, in
JSONSt
ring
return scanstring(match.string, match.end(), encoding)
File "C:\Program Files\Pywikipedia\simplejson\decoder.py", line 85, in
scanstr
ing
if terminator == '"':
RuntimeError: maximum recursion depth exceeded in cmp
maximum recursion depth exceeded in cmp
935 titles were saved.
--
Bináris
I support his request. He submitted a lot of usefull patches, see r8989, 8985, 8984, 8946, 8652, 8609, 8562, 8527 (I am sure I forgotten some) and he could complete the developer team very well.
Greetings
xqt
----- Original Nachricht ----
Von: "Dr. Trigon" <dr.trigon(a)surfeu.ch>
An: pywikipedia-l(a)lists.wikimedia.org
Datum: 22.01.2011 19:07
Betreff: Re: [Pywikipedia-l] SVN access for Lewis Cawte (Lcawte)
> Hello all!
>
> What do I have to do in order to get SVN commit access?
>
> I already asked a few times... :)
>
> Thanks and Greetings
> Dr. Trigon
>
>
Hi Bináris,
Please do a reply-to-all, or your replies won't end up in the discussion
list.
touch.py has a -redir option that will let you touch redirects. Could you
try that?
Merlijn
2011/2/27 Bináris <wikiposta(a)gmail.com>
>
>
> 2011/2/27 Merlijn van Deen <valhallasw(a)arctus.nl>
>
> I just realized - .get() will retrieve the page using the API by default.
>> This probably does not trigger the 'read' status. Could you try using
>> touch.py or temporarily setting the api config setting to 'off'?
>>
>>
> First, I switched use_api = True to explicite False, ran the above script
> again, switched on again, and the message still comes.
> Then I gave the command
> touch.py -page:szerkesztővita:BinBott
> The answer is:
> Page [[Szerkesztővita:BinBott]] is a redirect; skipping.
>
>
>> Merlijn
>>
>>
>> On 26 February 2011 17:56, Bináris <wikiposta(a)gmail.com> wrote:
>>
>>> Yes, I logged in at the beginning when I had to set my e-mail address.
>>> Today I loaded an HTML page by bot several times, and the "orange bar" could
>>> be seen in the source.
>>>
>>> 2011/2/26 Merlijn van Deen <valhallasw(a)arctus.nl>
>>>
>>> Have you tried logging in to wikipedia:hu by hand? Do you get the orange
>>>> 'You have new messages' bar?
>>>>
>>>>
>>> --
>>> Bináris
>>>
>>
>>
>
>
> --
> Bináris
>
I just realized - .get() will retrieve the page using the API by default.
This probably does not trigger the 'read' status. Could you try using
touch.py or temporarily setting the api config setting to 'off'?
Merlijn
On 26 February 2011 17:56, Bináris <wikiposta(a)gmail.com> wrote:
> Yes, I logged in at the beginning when I had to set my e-mail address.
> Today I loaded an HTML page by bot several times, and the "orange bar" could
> be seen in the source.
>
> 2011/2/26 Merlijn van Deen <valhallasw(a)arctus.nl>
>
> Have you tried logging in to wikipedia:hu by hand? Do you get the orange
>> 'You have new messages' bar?
>>
>>
> --
> Bináris
>
Hi,
I keep getting "NOTE: You have new messages on wikipedia:hu".
I wrote a script which I thought to solve the problem with reading the bot's
talk page:
import wikipedia as pywikibot
site=pywikibot.getSite()
page=pywikibot.Page(site, 'user talk:BinBott')
print page.get(get_redirect=True)
No result, the message continues to appear. My bot's talk page is redirected
to my own talk page, as it is at the majority of bot owners. I don't need
such messages. How can I switch it off? Is there a switch in the config?
--
Bináris