xml = """<xml>
  <web:Web>
    <web:Total>4000</web:Total>
    <web:Offset>0</web:Offset>
  </web:Web>
</xml>"""
doc = BeautifulSoup(xml)
print(doc.find('web:total').string)
print(doc.find('web:offset').string)
How can I access namespaced XML elements using BeautifulSoup?