tus&gt;&quot;) + 8
end = data.find(&quot;&lt;/status&gt;&quot;, start)
if data[start:end] == &quot;0&quot;:
    print &quot;Erreur de login!&quot;

start = data.find(&quot;&lt;id&gt;&quot;) + 4
end = data.find(&quot;&lt;/id&gt;&quot;, start)
id = data[start:end]

start = data.find(&quot;&lt;prenom&gt;&quot;) + 8
end = data.find(&quot;&lt;/prenom&gt;&quot;, start)
firstname = data[start:end]

start = data.find(&quot;&lt;nom&gt;&quot;) + 5
end = data.find(&quot;&lt;/nom&gt;&quot;, start)
lastname = data[start