Giter Site home page Giter Site logo

car-type-spider's Introduction

qichezhijia-crawl

这是一个python爬虫项目, 目前有两个:

  • 1.爬取汽车之家的车型图片数据,代码在qichezhijia_car.py,使用的是正则表达式方法
  • 2.爬取新浪汽车的车型图片数据,代码在sina_car.py,使用的是xpath方法

说明:

  • 1.运行环境在windows下,如在别的系统跑把driver换一下即可
  • 2.可能用不了多线程,由于变量共享,文件夹会创建错误,sina_car.py中analysis_main_page()函数给出了多线程的写法
  • 3.下载时间超过30s设为超时,可以在save_pic函数中timeout参数自行更改
  • 4.下载速度不能太快,会被对方服务器发现,发出拦截,实在控制不了在每个调用save_pic()后面加上sleep()函数可以解决

car-type-spider's People

Contributors

fengsibo avatar xiaobotianxie avatar

Watchers

 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.