CamelCase ve find_all etiket adları olan BeautifulSoup 4.4.0 ile bir xml dosyasını kazıymaya çalışıyorum. Örnek kod:camelCase etiket isimleri ile birlikte BeautifulSoup 4 ile find_all 4
from bs4 import BeautifulSoup
xml = """
<hello>
world
</hello>
"""
soup = BeautifulSoup(xml, "lxml")
for x in soup.find_all("hello"):
print x
xml2 = """
<helloWorld>
:-)
</helloWorld>
"""
soup = BeautifulSoup(xml2, "lxml")
for x in soup.find_all("helloWorld"):
print x
alıyorum çıktısı:
$ python soup_test.py
<hello>
world
</hello>
kasalı/Büyük harfli etiket adları deve aramak için doğru yolu nedir?