0
点赞
收藏
分享

微信扫一扫

爬虫之BeautifulSoup


开发工具

  • python-3.7.0
  • pycharm

首先,导入这些包

爬虫之BeautifulSoup_开发工具


爬取对象 斗图 图片

爬虫之BeautifulSoup_python_02


请求拿到url的内容

爬虫之BeautifulSoup_赋值_03


使用BeautifulSoup 将html 赋值给soup

爬虫之BeautifulSoup_赋值_04


找到图片的位置 图片列表

爬虫之BeautifulSoup_开发工具_05


循环 保存本地

爬虫之BeautifulSoup_爬虫_06


举报

相关推荐

0 条评论