title: sending a token to pass ReCaptcha V2
body: <p>Please help me figure out what to do with the google captcha token ReCaptcha V2. I get the solved captcha token using the rucaptcha service, but then I don’t know what to do with it.
  I tried to do it like here:</p>
  <p><a href="https://webscraping.pro/2captcha-service-to-solve-recaptcha/" rel="nofollow noreferrer">https://webscraping.pro/2captcha-service-to-solve-recaptcha/</a></p>
  <p>but it's already doesn't work, here is part of my code responsible for solving captcha:</p>
  <pre><code> s = requests.Session()
   query = {
           'start': f'{x}'
       }
   url = 'https://www.google.com/search?q=' + name
   r = s.get(url, headers=headers, params=query)
   if soup.find('div', id='recaptcha'):
          data_sitekey = soup.find('div', id='recaptcha').get('data-sitekey')
          data_s = soup.find('div', id='recaptcha').get('data-s')
          current_url = url + '&amp;start=' + str(x)
          cookies = requests.utils.dict_from_cookiejar(s.cookies).get('NID')
          params_in = {
              'key': 'xxxxxxxxxxxxxxxxxxxxxxxxxx',
              'method': 'userrecaptcha',
              'googlekey': data_sitekey,
              'data-s': data_s,
              'pageurl': current_url,
              'cookies': 'cookieName:' + cookies,
          }
          req = requests.get('http://rucaptcha.com/in.php', params=params_in)
          id = req.text[3:]
          params_res = {
              'key': 'xxxxxxxxxxxxxxxxxxxxxxxxxx',
              'action': 'get',
              'id': id
          }
          sleep(20)
          res = requests.get('http://rucaptcha.com/res.php', params=params_res)
          while res.text == 'CAPCHA_NOT_READY':
              sleep(20)
              res = requests.get('http://rucaptcha.com/res.php', params=params_res)
         solution = res.text[3:]
  </code></pre>
  <p>but then I don't understand what request needs to be made to solve the captcha after get solved capthca token (solution)</p>
  <p>I will be grateful for the help</p>