Giter Site home page Giter Site logo

dianping's Introduction

dianping_reviews_spider

clone from fuerlai

获取大众点评网的用户评论内容

评论信息格式:

shop_id:

商铺的ID,通过这个ID可以链接到商铺的信息页面

customer_id:

用户的ID,通过这个ID可以链接到用户主页

review_words:

评论的内容,支持emoji表情的解析和入库

review_time:

评论的发表时间

使用说明:

可以以商铺来逐个获取用户的评论内容
项目抓取的是火锅分类下的商铺的用户评论,当然支持扩展到其他分类下的商铺的用户评论信息

爬取三类数据,信息格式见SQL文件描述

爬取只需要设置main.py文件和setting.py文件

比如爬取review时候,
只要打开main.py中的执行review的行,注释其他两行
打开setting.py中的review的pipeline,让系统进行入库review操作,注释掉其他两行

开发环境:

scrapy 1.5.0

pymysql

(我自己使用Anaconda3,其中包括了以上两个依赖库,当然也可以不必安装Anaconda3,但是一定要是python3平台)

Pycharm2018.1

MySQL5.5 + Navicat12

Ubuntu1604(开发环境)

Windows10(运行环境)

dianping's People

Contributors

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