Move pages

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Move pages

Leonardo Gregianin
I'm trying to move pages:

lang = 'pt'
family = 'wikipedia'
site = wikipedia.getSite(lang, family)
page = wikipedia.input('page:')
pagemove = wikipedia.input('movepage:')
titleroot = wikipedia.Page(site, page)
movepage = wikipedia.Page(site, pagemove)

page: Usuário:LeonardoG/Teste
movepage: Usuário:LeonardoG/Teste2
Getting a page to check if we're logged in on wikipedia:pt
Getting page to get a token.
Getting page [[Wikipedia:Sandbox]]
Traceback (most recent call last):
  File "C:\pywikipedia-cvs\pywikipedia\", line 33, in <module>
  File "C:\pywikipedia-cvs\pywikipedia\", line 1329, in move
    data = urlencode(tuple(predata))
  File "C:\pywikipedia-cvs\pywikipedia\", line 1734, in
    v = urllib.quote(v)
  File "C:\Python25\lib\", line 1204, in quote
    res = map(safe_map.__getitem__, s)
KeyError: u'\xe1'

Somebody knows solve this problem? Bug is the same problem of this:

Wikibots-l mailing list
[hidden email]