看板 Python 關於我們 聯絡資訊
https://gist.github.com/anonymous/daf246ebe24e096f8ca0 // 程式碼 https://gist.github.com/anonymous/104dcefed9c426e13816 // 測試資料 Tables = soup.findAll('table') // 濾過出html 所有 table print Tables // 這邊輸出結果會變成html裡面所有 <table></table> 之間資料都出現四份 , 照道理應該只html 裡面所有table都只有一份 想請問一下這是什麼原因造成? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 175.182.166.218 ※ 文章網址: http://www.ptt.cc/bbs/Python/M.1406909227.A.E80.html
mist719:資料裡main frame是nested table 每次都只剝一層 08/02 10:49
mist719:做了一個簡單的 給你參考看看http://ideone.com/8YmhzW 08/02 12:41