python爬蟲運(yùn)行報(bào)錯(cuò) NameError: name 'BeautiflSoup' is not defined
源代碼:
#?coding:gbk from?bs4?import?BeautifulSoup import?requests if?__name__?==?'__main__': ????target?=?'http://www.biquge.com.tw/11_11850/7644114.html' ????req?=?requests.get(url=target) ????req.encoding?=?'gbk' ????html?=?req.text ????bf?=?BeautiflSoup(html) ????texts?=?bf.find_all('div',class_?=?'showxt') ????print(texts)
linux下運(yùn)行報(bào)錯(cuò)
NameError:?name?'BeautiflSoup'?is?not?defined
BeautifulSoup? ? requests這兩個(gè)都安裝好了啊
求幫助QAQ
2017-12-10
單詞拼錯(cuò)了