作者yshihyu (yshihyu)
看板Python
标题[问题] beautifulsoup 使用问题
时间Sat Aug 2 00:07:00 2014
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://webptt.com/cn.aspx?n=bbs/Python/M.1406909227.A.E80.html
1F:推 mist719:资料里main frame是nested table 每次都只剥一层 08/02 10:49