htmlobj = urlopen('http://www.58pic.com/haibao/0/dnum-1.html')
soup = BeautifulSoup(htmlobj, "lxml")
print(soup)
高洛峰2017-04-18 10:24:48
You should be like this
htmlobj = urlopen('http://www.58pic.com/haibao/0/dnum-1.html')
soup = BeautifulSoup(htmlobj.read(), "lxml")
print(soup)
伊谢尔伦2017-04-18 10:24:48
ubuntu 16.04, python3.5
The original code can be output and is not empty
If urlopen does return null, the usual error is that the server does not exist.