- 博客(2)
- 收藏
- 关注
原创 Python爬虫 object has no attribute ‘title’ 问题解决
Python爬虫 object has no attribute ‘title’ 问题解决在学习python爬虫时,想要获取title信息,遇到object has no attribute ‘title’ 的问题,仔细看并没有标点和拼写错误原代码from urllib.request import urlopenfrom bs4 import BeautifulSoup as bfhtml=urlopen("http://www.baidu.com/")obj=bf(html.read()
2021-11-01 10:33:51
4587
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人