python——爬取网页图片

BeautifulSoup    https://www.crummy.com/software/BeautifulSoup/bs4/doc/index.zh.html#id10html 步骤:python 发送http请求,获取html 获取全部img标签 用正则表达式取出src的网址 返回图片网址的html,用二进制保存为图片 代码: 正则表达式 import urllib.request f
相关文章
相关标签/搜索