fkhera / powerwallCloud

30 stars 6 forks source link

Minor bug in captchasolver.py #7

Open Panda88CO opened 3 years ago

Panda88CO commented 3 years ago
    captcha_answer = resp.text
    while 'CAPCHA_NOT_READY' in captcha_answer:
        sleep(5)
        captcha_answer = requests.get(answer_url,
                params=data)
        print captcha_answer.text

    captcha_answer = captcha_answer.text.split('|')[1]

If first captcha_answer is ready it nologer has .text property in the split statement