beautifulsoup的有关问题

beautifulsoup的问题from bs4 import BeautifulSouphtml_srcurllib.urlopen(http://bj.meituan.com/).r

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')