foreword
This article teaches you how to get snap-up requests. Some websites are more complicated. Let's start with the simple and understand the principle. In order to draw inferences better. In order to better explain how to write snap-to-buy software, I specially built an NFT collection website for teaching.
Practical
First open the website: https://nft.ljlju.cn/h5 , login account
test account: 18888888888
test password: 123456
and enter the website snap-up interface
To write snap-up software, first we need to analyze and click Buy Now. How does the program send requests to the background.
Open the website:
press F12 to enter the console mode, click the network to start analyzing the requested data
Click the Buy Now button
to enter the order submission interface. This is the interface for obtaining product information, not the data we want to capture. Then proceed to submit order.
It can be seen that this request is a request to lock the order. We just need to study this request and analyze the parameters of the interface. Then write software in easy language to continuously request this interface. We generally click on the header and payload to analyze.
Through here we can get the request information of the interface. We only need to simulate the request information of this interface through software. We can achieve the effect of our manual click.
At this time, open Jingyi Assistant->Network Debugging Tool
and fill in the corresponding interface information, copy the form data as shown in the figure below and copy id:233, submit the protocol header and fill in all the data in the request header,
and finally
you can see the prompt of successful purchase as shown in the figure below , indicating that this interface is correct.
The data can also be seen in the interface of my order. When we write snap-buying software, we actually analyze which interface is the interface for placing an order, then simulate those data manually, and then request this interface continuously through the program, so as to achieve the effect of snap-buying. I hope everyone can understand the principle. The next article will teach you to write a loop function in easy language to request the interface just now.