PTT
Submit
Submit
選擇語言
正體中文
简体中文
PTT
Python
[問題] beautifulsoup 使用問題
作者:
yshihyu
(yshihyu)
2014-08-02 00:07:00
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都只有一份
想請問一下這是什麼原因造成?
謝謝
作者: mist719
2014-08-02 10:49:00
資料裡main frame是nested table 每次都只剝一層做了一個簡單的 給你參考看看
http://ideone.com/8YmhzW
繼續閱讀
[問題] 請問要怎麼寫才能保證一定會做clean up?
os653
[問題] 請問是否有能直接生成exe的gui tool?
skyline99
[推荐] Anaconda
maze
[問題] qt designer轉換py後layout跑掉
genius091612
[問題] search path 及 relative import的問題
dcleft
[問題] regEXP
yshihyu
[心得] 加快 pip 安裝重覆套件 wheel/cache
ccwang002
Re: [問題] socket.sendto 用法
LiloHuang
[問題] CX_Freeze產生單執行檔?
Love1019
[問題] socket.sendto 用法
erttyy8821
Links
booklink
Contact Us: admin [ a t ] ucptt.com