Giter Site home page Giter Site logo

meituan_hotel's Introduction

2019-05-07更新:

数据库新增加一张表,实现这张表同页面同步

另一张表作为历史记录不动

新增加一个写入时间字段

稍微修改一部分逻辑

info:

最近接的一个私活

采集美团酒店后台的实时订单数据

美团的反爬虫主要体现在:

  1. 对ip的限制

  2. _token

  3. 对cookie的处理-出发滑动验证

该程序解决两个问题:

web端:

查看最近log,已经输入更新后的cookie

爬虫端:

根据cookie,算_token 拿数据,存入mysql里 但凡 cookie一旦失效,向指定用户发短信

如何使用

  1. 打开web服务

    nohup python3 meituan_web.py &

  2. 启动爬虫

    nohup python3 run.py &

meituan_hotel's People

Contributors

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