Python3.6中bs4.BeautifuSoup对象的findall:NoneType object is not callable
2017-04-23 13:01
686 查看
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()
#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()
相关文章推荐
- Python: TypeError: 'dict' object is not callable
- python错误:TypeError: 'str' object is not callable
- Python:TypeError: 'int' object is not callable
- python import 包问题:TypeError: 'module' object is not callable
- Python TypeError: 'module' object is not callable
- python错误:TypeError: 'module' object is not callable
- python的exit退出时,提示TypeError: 'str' object is not callable
- Python:TypeError: 'int' object is not callable
- 【Python 笔记】命名域之 TypeError 'DataFrame' object is not callable
- python 2.7 : 引用模块时出现TypeError:'module' object is not callable
- python3在pycharm中为什么导入random模块不能用? TypeError: 'module' object is not callable
- python TypeError: 'module' object is not callable
- Python出现TypeError: 'NoneType' object is not iterable
- python+selenium自动化测试~打开浏览器报TypeError: 'module' object is not callable
- python2.7web代码用python3.6运行时,浏览器发送请求报错TypeError: Object of type 'bytes' is not JSON serializable的解决办法
- python class中遇到的TypeError: 'module' object is not callable
- python错误:TypeError: 'module' object is not callable
- Python: TypeError: 'int' object is not callable
- python装饰器 ——@符号与“TypeError: 'NoneType' object is not callable”
- Python包导入(TypeError: 'module' object is not callable),及一定要记住Python成员函数第一个参数值是self。