我想从一个网址的图片的href不使用硒得到动态内容蟒蛇
def():
try:
page = urllib2.urlopen('')
except httplib.IncompleteRead, e:
page = e.partial
response = BeautifulSoup(page)
print response
var = response.find("div", {"id":"il_m"}).find('p')
图片,但我有没有为result.What我应该做的,以GE在href?
谢谢你的回答,但我得到这个错误'NoneType'对象没有属性'__getitem__' –
你是如何得到源和什么版本的bs4? –
版本4.4.0和你的意思是我得到的源代码, –