Python3.6中bs4.BeautifuSoup对象的findall:NoneType object is not callable

来源:互联网 发布:穿越火线挂机软件 编辑:程序博客网 时间:2024/06/07 12:10

Python3.6中:bs4.BeautifuSoup对象的findall:NoneType object is not callable

#coding=utf-8
from bs4 import BeautifulSoup
from urllib.request import urlopen
html=urlopen('http://www.pythonscraping.com/pages/page1.html')
bsobj=BeautifulSoup(html)

通过dir()可以看到对象中有find_all,因此使用

bsobj.findall()


0 0
原创粉丝点击