1
xiaoqiao 2015-01-04 14:53:05 +08:00 1
innerHTML?p.text?
|
2
no13bus 2015-01-04 15:50:21 +08:00 1
from bs4 import BeautifulSoup
aa='''<p><img align="left" height="268" src="images/n_shiye.gif" width="151"/>XXX</p>''' b = BeautifulSoup(aa) print b.text |
3
icedx 2015-01-04 16:12:19 +08:00 via Android 1
.text
|
5
LINAICAI OP @no13bus 从一个页面去内容 肯定不止这么一点text 啊 怎么筛选<img align="left" 并且取XXX
|
6
bertonzh 2015-01-05 09:51:02 +08:00
$('img[align=left]').parent().text()
|