Python-BeautifulSoup findAll von "class" - Attribut

Möchte ich die folgenden code, das ist, was BS Dokumentation zu tun, sagt, das problem ist nur, dass das Wort "Klasse" ist nicht nur ein Wort. Es kann gefunden werden innerhalb von HTML, aber es ist auch ein python-Schlüsselwort, das bewirkt, dass dieser code einen Fehler auslösen.

So, wie mache ich Folgendes?

soup.findAll('ul', class="score")

InformationsquelleAutor appleLover | 2013-11-14

Schreibe einen Kommentar