nausheenfatma / python-wikitools

Automatically exported from code.google.com/p/python-wikitools
0 stars 0 forks source link

Can not create page with CAPTCHA #51

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
        result = page.edit(text=text, bot=True, createonly=True)
        print result
        captchaid = result['edit']['captcha']['id']
        captchaword = result['edit']['captcha']['question']
        captchaword = '-'.join(captchaword.split(u'\u2212'))
        captchaword = str(eval(captchaword))
        print captchaword
        result = page.edit(text=text, bot=True, createonly=True, captchaid=captchaid, captchaword=captchaword)
        print result

What is the expected output? What do you see instead?
page created in the targeted wiki (in this wiki, i've got only simple CAPTCHA 
installed).

Please provide any additional information below.
Instead of this I've got the given output:
{u'edit': {u'captcha': {u'mime': u'text/plain', u'type': u'simple', u'id': 
u'1994699555', u'question': u'40\u22125'}, u'result': u'Failure'}}
35
{u'edit': {u'captcha': {u'mime': u'text/plain', u'type': u'simple', u'id': 
u'1726378154', u'question': u'8+1'}, u'result': u'Failure'}}

Original issue reported on code.google.com by earthqua...@gmail.com on 8 Nov 2012 at 4:48

GoogleCodeExporter commented 8 years ago
Ah, sorry. Used pip install to install wikitools and captchaid, captchaword 
were not in the valid args list. The above code works fine.

Original comment by earthqua...@gmail.com on 8 Nov 2012 at 5:01

GoogleCodeExporter commented 8 years ago

Original comment by MrZmanwiki@gmail.com on 7 Dec 2013 at 10:44