Coder Social home page Coder Social logo

qunar's Introduction

去哪儿爬虫

该爬虫仅为 js 逆向练手项目, 仅进行到数据获取阶段, 未实现数据存储等后续功能。

文件说明

考虑到对去哪儿网站不好, 将关键 js 代码删除了, 如有需要, 且是正当用途, 可发邮件给我。

  • encrypt.js: m 参数加密js
  • decrypter.js: 酒店评论解密js
  • hotel_list: 酒店列表 API
  • hotel_comment: 酒店评论 API
  • air_ticket_demo: 机票查询 API

反爬

  • 请求头参数加密: cookie 校验
  • 表单参数加密: feature 参数: 对请求的浏览器参数进行校验, m: cookie 校验
  • 返回数据混淆: 接口返回的机票价格是随机偏移的, json数据中有一段js:t1000, 处理一下这段 js 传入获取到的数据, 即返回价格偏移量
  • 返回数据加密: json数据经过AES加密

结果展示

  • 机票 image image

  • 酒店列表 image

  • 酒店评论 image

公告

该项目仅供学习参考, 请勿用作非法用途! 如若涉及侵权, 请联系[email protected]/[email protected], 收到必删除!

qunar's People

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.