如何修复python中在处理web抓取项目时出现的beautifulsoup错误?

2024-04-25 20:44:03 发布

您现在位置:Python中文网/ 问答频道 /正文

这是它显示的错误:

value error
Traceback (most recent call last).

代码:

url = "www.flipkart.com"
html = urlopen(url)

Tags: 代码comurlmostvaluehtmlwww错误
1条回答
网友
1楼 · 发布于 2024-04-25 20:44:03

提供的代码远不是mcve,但我认为问题是"www.flipkart.com"缺少http://协议前缀

试试url = "http://www.flipkart.com"

相关问题 更多 >