beautifulsoup的问题
from bs4 import BeautifulSoup
html_src=urllib.urlopen('http://bj.meituan.com/').read()
soup = BeautifulSoup(''.join(html_src))
soup.findall('div')
报错TypeError: 'NoneType' object is not callable
[解决办法]
soup = BeautifulSoup(''.join(html_src)) -> soup = BeautifulSoup(html_src)
soup.findall('div') -> soup.find_all('div')