python爬虫运行报错 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下运行报错
NameError: name 'BeautiflSoup' is not defined
BeautifulSoup requests这两个都安装好了啊
求帮助QAQ