Giter VIP home page Giter VIP logo

crawling-lazy-load-page-s-img-to-local's Introduction

crawling-lazy-load-page-s-img-to-local

爬取一个懒加载网页的所有图片到本地

  • 去网站下载chromewebdriver.exe
  • 跟chrome.exe放在同一个目录下
  • 设置chrome.exe环境变量

在命令行模式下运行python getimg.py

由于不同的网站图片地址的后缀不一样,所以要根据图片地址的实际情况来对文件名进行处理 比如,以美食天下这个网站为例,他们处理图片大小的方式是在图片地址后面加上?...的方式,所有在格式化文件名称的时候要把问号后面的全部去掉,不然执行open方法的时候,打不开这个文件,提示Invalid Syntax

有了这个工具,对我们来说,模仿其他网站做项目将会有所帮助。

crawling-lazy-load-page-s-img-to-local's People

Contributors

chxlvwh avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.