J'utilise BeautifulSoup pour analyser du HTML. Voici le contenu:Un href attraper
<tr>
<th>Your provider:</th>
<td>
<img src="/isp_logos/la-la-la.ico" alt=""/>
<a href="/isp/SomeProvider">
Provider name </a>
<a href="http://*/isp-comparer/?isp=000000">
</a>
</td>
</tr>
Je dois obtenir SomeProvider texte du lien. Mon code est:
contentSoup = BeautifulSoup(ThatHtml)
print contentSoup.findAll('a', href=re.compile('/isp/(.*)'))
Le résultat est tableau vide, pourquoi? Peut-être qu'il existe d'autres moyens?