英文:
'module' object is not callable in python
问题
I am getting module is not Callable, kindly anyone help me
要解析数据
英文:
!pip install bs4
!pip install html5lib
import pandas as pd
!pip install lxml
import requests
import bs4 as BeautifulSoup
url = "https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-PY0220EN-SkillsNetwork/labs/project/netflix_data_webpage.html"
data=requests.get(url).text
soup = BeautifulSoup(data,'html5lib')
i am getting module is not Callable, kindly anyone help me
want to parse the data
答案1
得分: 1
你正在不正确地导入BeautifulSoup,请将其更改为from bs4 import BeautifulSoup
。
英文:
You are importing BeautifulSoup incorrectly, please change it to from bs4 import BeautifulSoup
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论