Tutorial for using the golang version of Moutai's snap-up script

 

Recently, I saw that many people around me started to grab Moutai, and they all grabbed it one after another, so I started to pay attention to this matter.

I wanted to see if I had the ability to write one myself, but I accidentally saw many articles written on github, and some big guys on github wrote a script to grab Moutai, so I went to GitHub to have a look. I found several versions. The basic official account pushes the python version, and others include the golang version, node version, etc., because the python version still needs to build a system environment, the minimum white user has a certain threshold, and I know more about golang , finally I chose the golang version.

First necessary conditions: the computer is equipped with a Chrome browser, and the user has opened a JD plus membership

The first step is to download the program, the download address is

https://github.com/ztino/helloworld/releases

As shown in the figure below, the latest version is 0.2.4, the download is divided into windows, Linux, Mac, etc., please download according to your needs.

 

After the download is complete, it is used. In fact, the writing in github is already very clear, but some of them are compilation methods, and execution in docker, etc., which will cause some confusion to some novice users. In fact, if you just use If so, don’t worry about those, just apply it directly below.

Let's take Mac as an example

First unzip the folder, enter the unzipped folder, and execute the following program (execution is not double-click, this program is a command line program)

first step, login

./jd_seckill login

The scanning code interface will pop up (some pictures have no background, because the version is different, just scan the code)

The second step is to obtain eid, fp and execute (the following link is a product link that can be put into the shopping cart, which can be replaced, and generally does not need to be replaced)

./jd_seckill jdTdudfp --good_url https://item.jd.com/100007959916.html

After execution, the browser will automatically perform the operation of putting the above linked products into the shopping cart, don't worry, no payment will be made

 

The third step is to make an appointment (if you have already made an appointment with your mobile phone, you can skip this step)

./jd_seckill reserve

 

The fourth step, snap up

./jd_seckill seckill

 

That's how the buying starts, isn't it easy?

One point to note is that the program configuration file is config.ini. In fact, some parameters can be modified by default. I think the most important thing is the seckill_num parameter. If you have already bought 1 bottle, filling in 2 will definitely fail. Others can be set by default. Specifically, you can modify the configuration where you want to change. The author has made detailed comments.

Finally, I saw that someone has successfully snatched it through this program.

If you can't download the software, you can download it through the download link below

https://download.csdn.net/download/dtwangquan/14121668

You can also follow the official account "Wuji Learn Tai Chi" and reply to "Maotai" to get the download link.

I took a brief look at this code. In fact, the main idea is to simulate human operation to carry out the entire manual process, which increases the speed and improves the probability of success. However, if students who like code are interested, you can take a look at the author's code. Definitely a lot to learn.

If you feel that my writing is good, you may wish to pay attention.

If you have any questions, you can leave a message to ask questions.

The following is the video of the whole process, you can watch it if you don’t know it

Github 1k multi-star grab Moutai program experience

 

Guess you like

Origin blog.csdn.net/dtwangquan/article/details/112510598