Giter VIP home page Giter VIP logo

scrapy_boss's Introduction

Scrapy_Boss

scrapy爬取BOSS直聘网职位信息

最近在学习scrapy框架,借机找了个项目练手。

Boss直聘网 没有常规的反爬虫机制,数据也很规整,很适合入门上手scrapy。

逻辑

  • Boss直聘网站的每个搜索结果最多只展示10页,即300条数据

  • 按照城市和搜索关键词爬取

    • 除了四个直辖市以外,不能直接按照省份爬取,只能遍历省份下的每个城市,然后分别爬取
    • 先爬取页面下的 city.json,获取城市列表数据和对应的查询编号code
    • 命令行动态传参,如果输入的是省份,就爬取该省每个城市的信息,如果是城市就爬取对应城市
  • 存进MySQL数据库。存储表名为 城市名_搜索关键词 的形式

文档

Scrapy爬取Boss直聘时的问题与解决方案

scrapy_boss's People

Contributors

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