Giter VIP home page Giter VIP logo

scrapy_practice's Introduction

scrapy practice

对scrapy的学习做个记录

parctice_one 网址:看妹子 流程: get总网址,获得总网址中的目标地址列表 start_requests() 对列表中的每个元素提交一次request,获得各个详情页的response start_parse() 从各个详情页response中提取各个页的地址,提交request parse() 用上一步得来的response填充item对象 img_urls() 提交item,pipeline进行download 知识点: 主要使用了imagepipeline和item这两个内容 创建保存数据的item,在parse中提交item,在pipeline中对item进行处理 imagepipeline重写了file_path,get_media_requests,item_completed方法 在setting中启用imagepipeline和image_store 存在的问题: 对链接的追踪解析方面还存在一些问题,逻辑不够清晰

scrapy_practice's People

Contributors

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