我的网络刮擦不起作用,我不知道问题是什么
import requests
from bs4 import BeautifulSoup
req = requests.get("https://www.arukereso.hu/mobiltelefon-c3277/")
soup = BeautifulSoup(req.content, "head")
print(soup.prettify())
import requests
from bs4 import BeautifulSoup
req = requests.get("https://www.arukereso.hu/mobiltelefon-c3277/")
soup = BeautifulSoup(req.content, "head")
print(soup.prettify())
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您想要整个HTML内容(不确定您想用“头”实现什么):
尝试
替换
Assuming you want the entire html content (not sure what you want to achieve with the "head"):
Try replacing
with