GithubHelp home page GithubHelp logo

boss_spider's Introduction

##BOSS直聘爬虫(数据存放在Excel里)

####实现的过程

  1. 分析页面得到翻页URL:https://www.zhipin.com/c101280600/?period=1&page=2;请求方式为Get请求
  2. 拿到Request Header所有信息来伪装请求
  3. 将获取的数据存放与txt文件中
  4. 使用re模块提取信息
  5. 使用pandas将信息存入excel,然后做分类处理

####调用的python模块: import requests,random,re,pandas,time


####懒人解说:

  1. 打开浏览器按F12点击Network,刷新,复制Request Headers内的所有信息复制到create_headers.py文件的headers变量中
  2. 运行main.py
  3. 文件夹中就会出现Boss直聘.xlsx&html.txt&Boss直聘(分类后).xlsx文件
  4. 想要整站爬取得同学可以看看我得create_headers.py和spider.py来做深度爬虫

boss_spider's People

Contributors

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