Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the capture device of JD.com on Taobao through CVM

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to realize Taobao JD.com preemptor through cloud server". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

First, the design requirements of second kill:

a. High stability and high Internet speed

b. High frequency analog user operation

c. Through the authentication mechanism of Ali JD.com

Second, the difficulties in implementation:

a. How to solve the authentication login of Taobao.

b. Some operations may be blocked.

c. If the grab operation is too fast, there may be a slider, resulting in the failure of the grab.

Third, several theoretical methods:

The first is to use selenium or a tool similar to web keys to simulate the browser to submit an order, which has the advantages of easy production, security and millisecond speed. The disadvantage is that when the network speed card or grab too many people, may be due to the slow loading of web elements, resulting in the failure of the grab.

The second is to simulate socket and submit the order package directly. The advantage is the fastest, do not need to wait for the order confirmation interface, to the time to submit the order directly. The disadvantage is that the production is more complex, especially Taobao will update the encryption algorithm every day, need to update frequently. It is rumored that there is the possibility of sealing the name, but I have not been blocked yet.

The following two methods are analyzed respectively:

The first one: simulate browser operation

There are many tools, selenium and key wizard can be implemented, it is recommended to use selenium, command desk operation, faster execution.

The operation flow is as follows:

Online reference code example: (Python), the contents are more or less the same, the key ideas are clear and easy to do.

#! / usr/bin/env python

Coding: utf-8--

# 2018/10/313

# Taobao second kill, scan the login version

Import osfrom selenium import webdriverimport datetimeimport timefrom os import pathd = path.dirname (_ _ file__) abspath = path.abspath (d) chromedriver = abspath+ "\ chromedriver.exe" os.environ ["webdriver.chrome.driver"] = chromedriverdriver = webdriver.Chrome (chromedriver) driver.maximize_window () def login (): # Open the Taobao login page and log in by scanning the code

Driver.get ("https://www.taobao.com")time.sleep(3)if driver.find_element_by_link_text"): driver.find_element_by_link_text ("dear, please log in"). Click () print ("Please scan the code in 30 seconds") time.sleep (30) driver.get ("https://cart.taobao.com/cart.htm")time.sleep(5)")

Here, you need to choose the goods to be settled in the shopping cart.

`now = datetime.datetime.now ()

Print ('login success:', now.strftime ('% Y-%m-%d% HRV% MVA% S'))

Def buy (buytime):

While True:

Now = datetime.datetime.now () .strftime ('% Y-%m-%d% HRV% MRV% S.% f') `

Judgment time Click settlement if now > buytime: try: # Click the settlement button if driver.find_element_by_id ("J_Go"): driver.find_element_by_id ("J_Go"). Click () driver.find_element_by_link_text ('submit order') .click () except: Time.sleep (0.1) print (now) time.sleep (0.1)

If name = = "main":

Times = input ("Please enter rush time:")

Login ()

Buy (times)

If you need packaged software, you can also use Baidu cloud disk to download:

Https://pan.baidu.com/s/1EU5YM3VgXBDgv7v3F5icEg

Extraction code: b79e

Here's how to do it: (thank you for your great guidance on the Internet)

First of all, you need to have one or more CVMs (you can build one CVM each in Aliyun and Yemaiyun and use two numbers to grab it). Here is an example of what I often use Yimiyun. Please choose what kind of CVM to use. However, Yi Miyun has tested it well in terms of stability and backbone network. Reference website: www.aiemy.com

I will not say much about the specific purchase process, the system will choose win2012. Log in to the server through remote Desktop.

Decompress the files downloaded by Baidu cloud disk. Install chrome67 first (note that it is not chromedriver.exe)

Then put taobao.exe and chromedriver.exe under the same folder, and double-click to open taobao.exe

Enter the time of the shooting, pay attention to the time format (no Chinese symbols) year-month-day hours: minutes: 000000 seconds

After you enter, the Taobao interface will pop up and log in through the QR code scanned by your mobile phone. (this can effectively avoid the possibility of software being shelled and stolen.)

After logging in, you will automatically jump to the shopping cart and select all the shopping carts. If you don't need all the shopping carts to be selected, you can check them all and choose the items you need to grab.

When the time is up, the system will automatically click to settle and submit the order.

This is the end of the content of "how to realize Taobao JD.com Snatcher through Cloud Server". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report