需求
网上阅读到不错的文章,收藏到google书签后想要下载到本地,方便查询。
BeautifulSoup
python提供了一个便捷的工具抓取网页的内容叫Beautif...
python学习BeautifulSoup解析框架html
需求
使用BeautifulSoup解析网页获取图片地址,使用html.parser框架解析。
html.parser解析
soup = BeautifulSoup(response.text, 'html.parser'...