title: Why does 2captcha not resolve recaptcha?
body: <p>So basically I'm trying to make an program that automates creating accounts for this specific websites that needs captcha when creating an account. I'm trying to get a token from 2captcha (captcha token provider) which i then store in &quot;g-recaptcha-response&quot;, but when i run the program im still stuck on the captcha site and it asks for captcha.</p>
  <pre><code>import requests
  from time import sleep
  
  api_key = &quot;API-KEY&quot;
  site_key = &quot;SITE-KEy&quot;
  
  headers = {
      &quot;user-agent&quot;: &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36&quot;
  }
  
  url = &quot;https://www.nakedcph.com/en/auth/view?op=register&quot;
  
  with requests.Session() as s:
      captcha_id = s.post(&quot;http://2captcha.com/in.php?key={}&amp;method=userrecaptcha&amp;invisible=1&amp;googlekey={}&amp;pageurl={}&quot;.format(api_key, site_key, url)).text.split('|')[1]
      recaptcha_answer = s.get(&quot;http://2captcha.com/res.php?key={}&amp;action=get&amp;id={}&quot;.format(api_key, captcha_id)).text
      print(&quot;solving captcha...&quot;)
      while &quot;CAPCHA_NOT_READY&quot; in recaptcha_answer:
          sleep(5)
          recaptcha_answer = s.get(&quot;http://2captcha.com/res.php?key={}&amp;action=get&amp;id={}&quot;.format(api_key, captcha_id)).text
      recaptcha_answer = recaptcha_answer.split('|')[1]
      print(recaptcha_answer)
      data = {
          &quot;firstName&quot;: &quot;example&quot;,
          &quot;email&quot;: &quot;example&quot;,
          &quot;password&quot;: &quot;example&quot;,
          &quot;termsAccepted&quot;: &quot;true&quot;,
          &quot;g-recaptcha-response&quot;: recaptcha_answer
      }
      r = s.post(url, data=data, headers=headers)
      print(r.status_code)
  </code></pre>