Coder Social home page Coder Social logo

baidukoubei's Introduction

BaiduKouBei

a spider of baidu koubei,百度口碑爬虫

爬虫思路: 1.建立百度口碑爬虫类。 初始化参数 url 爬去的机构口碑页面 https://koubei.baidu.com/s/76e0eb471cf9bd323fb1dc1717a2d451?tab=comt&page=

startpage 开始页面 endpage 结束页面 header 爬去的头部 offset 自增量,主要是页面增加

2.抽取爬去连接 从列表页面抓取到每一个评论的连接(如果从列表页面抽取文本内容,会造成抽取不完整。)

3.拿到评论连接,开始发送请求,获取响应。

4.拿到响应之后开始分析数据,提取评论

5.保存评论

6.__main__控制器

baidukoubei's People

Contributors

lishuanwang avatar

Stargazers

 avatar

Watchers

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