def ruokuai_captcha_handler(self, params, image_url):
headers = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>}<EOL>image_data = requests.get(image_url).content<EOL>files = {'<STR_LIT:image>': ('<STR_LIT>', image_data)}<EOL>r = requests.post(<EOL>'<STR_LIT>',<EOL>data=params,<EOL>files=files,<EOL>headers=headers<EOL>)<EOL>verify_code_dict = r.json()<EOL>if verify_code_dict:<EOL><INDENT>if '<STR_LIT>' in verify_code_dict.keys():<EOL><INDENT>print (verify_code_dict['<STR_LIT>'])<EOL>return '<STR_LIT>'<EOL><DEDENT>verify_code = verify_code_dict.get('<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>print ('<STR_LIT>', verify_code_dict)<EOL>return '<STR_LIT>'<EOL><DEDENT>return verify_code<EOL>
若快自动识别验证码, 文档见: http://wiki.ruokuai.com/