= BeautifulSoup.BeautifulSoup(data)
captcha = soup.find('input', id=&quot;captcha&quot;)[&quot;value&quot;]
print &quot;Captcha:&quot;, captcha

# Envoi des indentifiants + captcha
req  = &quot;login=hacker%40plop.com&amp;password=31337&amp;submit=ok&quot;
req += &quot;captcha=&quot; + captcha

h[&quot;Content-type&quot;] = &quot;application/x-www-form-urlencoded&quot;
h[&quot;Referer&quot;] = &quot;http://www.trocool.fr/wesh-game&quot;
resp, data = cnx.request(&quot;http://www.trocool.fr/wesh-game&quot;, &