Code Monkey home page Code Monkey logo

baidupic's Introduction

Baidupic

scrapy框架爬取百度图片,使用scrapyd可以用json api调用爬虫,还可以传入keywords 和 page来指定爬取的内容,图片地址保存在本地.json文件供web框架使用,在piplines.py里可以改变储存方式,比如储存在数据库,用pymsql或者pymango,进入项目目录命令行输入命令scrapyd,向地址localhost:6800/schedule.json发送post请求,参数urlencode,类似这样http://localhost:6800/schedule.json?project=baidupic&spider=baidupicspider&keywords=美女&page=10 ,page默认10,可以不传,其他三个必传,端口可以在scrapy.cfg配置

baidupic's People

Contributors

cyc1ing1313 avatar

Stargazers

ZGC 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.