= cnx.request(form_url, &quot;POST&quot;, body = &quot;id%5Fjeu=13&quot;, headers = h)

soup = BeautifulSoup.BeautifulSoup(data)
id_partie = soup.infos.id_partie.next
print &quot;id partie:&quot;, id_partie
mess_err = soup.infos.mess_err.next.strip()
if mess_err != &quot;&quot;:
    print &quot;!&quot;,mess_err,&quot;!&quot;
    sys.exit()

# On lance notre thread de ping
ping = Ping()
ping.start()

# On attend pour similer une partie en cours. Pendant ce temps ca ping.
time.sleep(160)

# On declare la fin 