阅读背景:

Beautifulsoup使用`find_all`逐个文本找到元素,无论它是否有元素

来源:互联网 

For example

bs = BeautifulSoup("<html><a>sometext</a></html>")
print bs.find_all("a",text=re.compile(r"some"))
bs = BeautifulSoup("<html><a>some



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: