Python convertit html en texte
from bs4 import BeautifulSoup
soup = BeautifulSoup(html)
print(soup.get_text())
Cooperative Caribou
from bs4 import BeautifulSoup
soup = BeautifulSoup(html)
print(soup.get_text())
<html>
<head><title>LinkedCollab</title></head>
<body>
<table><tr>
<td><a href="reseau.php">Le r�seau</a></td>
<td><a href="metiers.php">Nos m�tiers</a></td>
<td><a href="pros.php">Nos professionnels</a></td></tr></table>
Nos m�tiers <br/><br/>
<a href="plombier.php">plombier</a><br/>
<a href="chauffagiste.php">chauffagiste</a><br/>
<a href="electricien.php">electricien</a><br/>
</body>
</html>
<iframe style="border: 1px solid rgba(0, 0, 0, 0.1);" width="800" height="450" src="https://www.figma.com/embed?embed_host=share&url=https%3A%2F%2Fwww.figma.com%2Ffile%2FaXDOALQaPPPPw9dBEbYzXJ%2FSpacewalk-(Community)%3Fnode-id%3D1%253A6" allowfullscreen></iframe>
<p>#include <iostream>
#include <algorithm>
using namespace std;
#define N 5</p>
<< a[i].time << endl;
return 0;
</code></pre>
<p>}</p>
<html>
<head>
<title>HTML Tutorial</title>
</head>
<body>
<h1>web design</h1>
<p>not coding</p>
<h2>first step</h2>
<p>DOM</p>
</body>
</html>