[英]beautiful soup find all <url> tag in xml
我有以下代碼:
xml = BeautifulSoup('xml.xml' "html5lib") print(xml.find_all('url'))
但是我得到一個空數組作為返回結果,我該怎么辦?
這是我的xml文件,以防萬一
BeautifulSoup(open('xml.xml') "xml")
打開您的XML文件,並使用XML解析器對其進行解析。
[英]Find all attributes in an XML using Beautiful Soup
[英]Beautiful Soup find_all error when cant find tag
[英]Unable to find xml tag using Beautiful Soup in a loop
[英]Beautiful Soup Can't Find the First Tag (XML)
[英]Can't find xml tag using beautiful soup and python
[英]Beautiful Soup unable to access first tag in find_all list
[英]Finding all page IDs for URL in XML with Beautiful Soup
[英]How to find tag with particular text with Beautiful Soup?
[英]Why cant i find this tag in beautiful soup?
[英]How to find the the child tag of a parent Beautiful Soup
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.