‘模块’ 对象在Python中不可调用

huangapple go评论125阅读模式
英文:

'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

huangapple
  • 本文由 发表于 2023年6月8日 17:17:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/76430341.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定