search
HomeBackend DevelopmentGolangBeat jd_seckill, the Go language version can grab the Maotai program without configuration, and take over the market with strength~

Beat jd_seckill, the Go language version can grab the Maotai program without configuration, and take over the market with strength~

On December 29th, I published an article "Big Brother's Open Source Moutai Script, Popular", introducing a very popular open source projectjd_seckill, using this script project, you can automatically make reservations on JD.com and automatically grab Moutai. As long as you grab a bottle, you can make a net profit of nearly 1,000 yuan. It is really money falling from the sky. In one sentence, this wave is: Technology benefits mankind~

This project has been on the top of Github for several days in a row. It has received more than 8,000 stars in just a few days, making it extremely popular. Unfortunately, the good times did not last long. Just yesterday, the author 红头豆 received a warning email from JD Security. Under heavy pressure, Hongtou Potato updated the warehouse for the last time, issued a deletion statement, and deleted the master branch.

Beat jd_seckill, the Go language version can grab the Maotai program without configuration, and take over the market with strength~

红头豆jd_seckill is written based on Python. The entire process is divided into the following steps:

  1. Install Python3 and download the source code

  2. ##Install project dependency packages from requirements.txt

  3. Manually open JD.com on PC, obtain the eid and fp parameters after placing an order, and fill in the configuration file config.ini

  4. Modify the rush purchase time, it must be in the future.

  5. Execute

    python main.py Then enter 1 to make an appointment

  6. Execute

    python main .py Then enter 2 to start buying

From this process, there are many steps that require manual operation to set up the running environment of the script. In my article After it became popular, hundreds of people added my WeChat account to ask me basic questions such as how to set up an environment. For a pure novice with no programming experience, there is a big threshold to use this script.

If you look at it from a product perspective, there is a lot of room for improvement in this project.

It’s a coincidence, it’s a forefootjd_seckill Just after it was stopped and officially removed from the shelves, there is a Maotai grabbing project written using GolangmtSeckill is standing again Get up (https://github.com/zqjzqj/mtSecKill).

Beat jd_seckill, the Go language version can grab the Maotai program without configuration, and take over the market with strength~

I tried to compile this mtSeckill project and run it

# 下载项目依赖
$ go mod download

# 编译
$ go build cmd/main.go

Before I found out The experience of jd_seckill is really hard to describe, the whole process is extremely smooth.

You just need to execute the following command

Beat jd_seckill, the Go language version can grab the Maotai program without configuration, and take over the market with strength~

The parameters are very intuitive

  • sku : The sku_id of the port you are snapping up. The ID below is Moutai’s

  • num: The quantity to snap up. The maximum number of Moutai bottles is 2 bottles, set to 2

  • works: How many browser windows are opened to buy

  • time: Time to buy, please note that it is not Date, but time, the time will automatically take the time of the latest day in the future.

After the execution is completed, a chrome browser will automatically open, access JD.com and let you scan the code to log in.

Beat jd_seckill, the Go language version can grab the Maotai program without configuration, and take over the market with strength~

After logging in, the program will automatically sense and obtain the eid and fp parameters. Note that this process is completely automatic, unlike the previous jd_seckill which required manual It’s so thoughtful to get it.

Beat jd_seckill, the Go language version can grab the Maotai program without configuration, and take over the market with strength~

After obtaining the eid and fp, 6 windows will be automatically opened (the work parameters you passed in before) to wait for the rush time to arrive~

Beat jd_seckill, the Go language version can grab the Maotai program without configuration, and take over the market with strength~

Isn’t it very simple and smooth? This experience is completely inferior to the previous jd_seckill. As long as a programmer who knows a little bit about Go compiles the project into an executable file, even a novice who doesn't understand programming at all can use it directly. It's simple. So convenient.

jd_seckill It gets popular too quickly and dies too quickly. I hope mtSeckill can last longer this time. Let’s grab a few more bottles. Maotai goes home and has a good New Year~

Even though the operation is so simple, in order to take care of Chun Xiaobai, there are two points I need to explain (so that no one keeps asking) :

  1. Whether you use win or mac, your computer needs to have the chrome browser installed

  2. If so For win users, just double-click the exe file

  3. ## If you are a mac user, you need to go to the terminal to execute this command after downloading to grant execution permission

    chmod x mtSeckill.mac, and then execute the command ./mtSeckill.mac to run.

  4. #This app does not implement the reservation function. You need to use the APP to make a reservation in advance.

The above is the detailed content of Beat jd_seckill, the Go language version can grab the Maotai program without configuration, and take over the market with strength~. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:Go语言进阶学习. If there is any infringement, please contact admin@php.cn delete
go语言有没有缩进go语言有没有缩进Dec 01, 2022 pm 06:54 PM

go语言有缩进。在go语言中,缩进直接使用gofmt工具格式化即可(gofmt使用tab进行缩进);gofmt工具会以标准样式的缩进和垂直对齐方式对源代码进行格式化,甚至必要情况下注释也会重新格式化。

go语言为什么叫gogo语言为什么叫goNov 28, 2022 pm 06:19 PM

go语言叫go的原因:想表达这门语言的运行速度、开发速度、学习速度(develop)都像gopher一样快。gopher是一种生活在加拿大的小动物,go的吉祥物就是这个小动物,它的中文名叫做囊地鼠,它们最大的特点就是挖洞速度特别快,当然可能不止是挖洞啦。

一文详解Go中的并发【20 张动图演示】一文详解Go中的并发【20 张动图演示】Sep 08, 2022 am 10:48 AM

Go语言中各种并发模式看起来是怎样的?下面本篇文章就通过20 张动图为你演示 Go 并发,希望对大家有所帮助!

【整理分享】一些GO面试题(附答案解析)【整理分享】一些GO面试题(附答案解析)Oct 25, 2022 am 10:45 AM

本篇文章给大家整理分享一些GO面试题集锦快答,希望对大家有所帮助!

tidb是go语言么tidb是go语言么Dec 02, 2022 pm 06:24 PM

是,TiDB采用go语言编写。TiDB是一个分布式NewSQL数据库;它支持水平弹性扩展、ACID事务、标准SQL、MySQL语法和MySQL协议,具有数据强一致的高可用特性。TiDB架构中的PD储存了集群的元信息,如key在哪个TiKV节点;PD还负责集群的负载均衡以及数据分片等。PD通过内嵌etcd来支持数据分布和容错;PD采用go语言编写。

go语言能不能编译go语言能不能编译Dec 09, 2022 pm 06:20 PM

go语言能编译。Go语言是编译型的静态语言,是一门需要编译才能运行的编程语言。对Go语言程序进行编译的命令有两种:1、“go build”命令,可以将Go语言程序代码编译成二进制的可执行文件,但该二进制文件需要手动运行;2、“go run”命令,会在编译后直接运行Go语言程序,编译过程中会产生一个临时文件,但不会生成可执行文件。

go语言是否需要编译go语言是否需要编译Dec 01, 2022 pm 07:06 PM

go语言需要编译。Go语言是编译型的静态语言,是一门需要编译才能运行的编程语言,也就说Go语言程序在运行之前需要通过编译器生成二进制机器码(二进制的可执行文件),随后二进制文件才能在目标机器上运行。

golang map怎么删除元素golang map怎么删除元素Dec 08, 2022 pm 06:26 PM

删除map元素的两种方法:1、使用delete()函数从map中删除指定键值对,语法“delete(map, 键名)”;2、重新创建一个新的map对象,可以清空map中的所有元素,语法“var mapname map[keytype]valuetype”。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.