Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not create page with CAPTCHA #51

Closed
GoogleCodeExporter opened this issue Mar 9, 2016 · 2 comments
Closed

Can not create page with CAPTCHA #51

GoogleCodeExporter opened this issue Mar 9, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant