[問題] 把不同XML裡的某些資料抓出來整併

作者: qazwsx99876 (茸茸)   2019-10-17 21:44:27
各位前輩大大好
最近開始學Python,想要拿來處理一些資料
目前我的資訊散落在幾十個XML中
我的想法是,先比對欄位名稱符合的,把包含他的以下三行抓出來
但不知道該怎麼寫比較好
有建議的指令或方法嗎
非常感激
<(_ _)>
作者: bugbug777 (sil)   2019-10-17 21:48:00
bs4
作者: TitanEric (泰坦)   2019-10-18 08:34:00
pandas也可以但xml還是推薦樓上的beautiful soup4

Links booklink

Contact Us: admin [ a t ] ucptt.com