当前位置:网站首页>Get the data of Mafeng Hotel
Get the data of Mafeng Hotel
2022-07-25 23:37:00 【tslilove】
Statement
All contents in this article are for learning and communication only , The content of the package 、 Sensitive website 、 All data interfaces have been desensitized , It is strictly prohibited to use for commercial and illegal purposes , Otherwise, all the consequences have nothing to do with the author , If there is infringement , Please contact me to delete !
Home page :aHR0cHM6Ly93d3cubWFmZW5nd28uY24v
Interface :aHR0cHM6Ly93d3cubWFmZW5nd28uY24vaG90ZWwvYWpheC5waHA=
Capture the requirements as shown in the box selection section in the figure below

After entering the home page , We click on the corresponding hotel , Screen the corresponding check-in date and departure time , Click on the search , By grabbing bags , Find the interface

We found that the returned data is standard JSON data , And the information we need is key by html In the value of
Then let's look at the request parameters , The box in the figure is what we need to fill , Check in and leave dates can be fixed , The number of pages can be set , The timestamp can be set , Now let's look at this _sn What are the parameters

The simple and crude way is to search the big method globally , As you can see from the picture , Why didn't you find it ? It's hard to find anything on the web

The reasons can be attributed to the following :
① This value may be modified when sending ② It may be generated by confused code , Then when a request occurs , Call splicing to get
Then what shall I do? ?
Only through XHR Breakpoints , Copy the interface to the following figure , Then click on the next page , Then the next step is ajax The place of


Print it from the console , The occurrence value has been generated

At this time, we have to go back online , have a look d Where was assigned

Then you will come to a index The file of

You can find ,_ts and _sn The parameters are calculated here


_ts It's a time stamp , and _sn By requesting parameters , By sorting , Add salt , Finally through md5 Encrypted interception 2 To 12 You get
Understand the whole context , You can put all js Take down , Make up the environment call , You can also use Python make carbon copies
Here I pass python make carbon copies , Then make a request , Get the first two pages

Succeed in getting !!!
summary : Verification code may be encountered during crawling , Can pass ddddocr solve

边栏推荐
- Which securities company should a novice choose to open an account? Is it safe?
- 静态代理+动态代理
- Ratio of learning_ add,ratio_ subtract,ratio_ multiply,ratio_ Use of divide
- Overview of MES system equipment management (Part 2)
- Scaffold installation
- initializer_list工具库学习
- WebMvcConfigurationSupport
- 【MUDUO】打包EventLoop和Thread
- @Import
- Which securities firm is the best and safest for beginners to open an account
猜你喜欢

How does Navicat modify the language (Chinese or English)?

Leetcode 0919. complete binary tree inserter: array representation of complete binary tree

Anti shake and throttling

Learning exploration - waves

chown: changing ownership of ‘/var/lib/mysql/‘: Operation not permitted

E-commerce RPA, a magic weapon to promote easy entry

Multimodal deep multi modal sets
![[code case] blog page design (with complete source code)](/img/9e/0e7cab956515b9cc75a7567eb477d2.png)
[code case] blog page design (with complete source code)

Matchmaker's words

ratio学习之ratio_add,ratio_subtract,ratio_multiply,ratio_divide的使用
随机推荐
[intelligence question] interview intelligence question
Cuteone: a onedrive multi network disk mounting program / with member / synchronization and other functions
TS interface
Three board axe! Help you become an excellent software engineer
Discuz atmosphere game style template / imitation lol hero League game DZ game template GBK
@Import
热部署和热加载有什么区别?
Recursion of function (use recursion to find the factorial of 1-N) (use recursion to find Fibonacci sequence) (use recursion to traverse data)
Practical skills of easyexcel
模拟实现string类常用接口
《数据密集型应用系统设计》 - 应用系统概览
Loading process such as reflection
Source code of YY music wechat applet imitating Netease cloud music
Docker 安装 Redis-5.0.12(远程访问)
Dynamic memory management
电商RPA,大促轻松上阵的法宝
[QNX hypervisor 2.2 user manual]9.6 GDB
学习探索-波浪
Classes and objects (2) (6 default member functions)
JS get the current date and time