0
J'ai une page htmlParse html belle soupe
<a email="[email protected]" href="http://www.max.ru/agent?message&[email protected]" title="Click herе" class="mf_spIco spr-mrim-9"></a><a class="mf_t11" type="booster" href="http://max.ru/mail/corporate/">
Je neeed une chaîne email Parse
soup = BeautifulSoup(data
string = soup.find("a",{"email": ""})
print string
Mais il ne fonctionne pas. Où erreur?
essayer déjà. – Alexander
Fichier "/usr/lib64/python2.6/site-packages/BeautifulSoup.py", ligne 599, dans __getitem__ return self._getAttrMap() [clé] KeyError: 'email' – Alexander
Edité pour afficher le script complet qui fonctionne pour moi – Day