1499 flying Maotai script using Python problems summary index

@[TOC]

The original address: chenhx.blog.csdn.net/article/det…

This article was last updated at 19:04 on Jan 8, 2021.

Column of the update time we can see this article: chenhx.blog.csdn.net/article/det…

Recently, more and more friends have given answers to questions in the article. In particular, some of the previous problems for a summary, here we can through the exception or problem keywords, direct search, you can find their need to find the problem, if not to search. Second private message (CSDN has a problem, 24 hours can only communicate with 5 strangers, you can become fans after you pay attention to unlimited communication).

Solemn Declaration and Matters needing attention:

  • The code is free (originally written by the author, you can also search on the Internet), and only for the research and learning of Python, do not use it illegally, at your own risk.
  • Individual studies should be deleted within 24 hours after downloading.
  • The column provides solutions to problems encountered while studying Python scripts, as well as detailed installation and use tutorials
  • Subscribe friends can text me for free to help solve some simple Python problems (keep an eye on my CSDN, otherwise private messages will be restricted)
  • If you are completely inexperienced in Python and programming (you still can’t solve the problem by yourself through my articles or guidance), you can find my Chang service (remotely help you operate, run a complete solution, full refund if it is not installed and run successfully). Price: If you subscribe, it’s 99. If you don’t subscribe, it’s 199 (70% deposit, 30% balance).
  • And line and cherish

Small white must see article tutorial

PyCharm -Windows 64-bit (1)

Download and install Chrome -Windows 64-bit OS (2)

Chrome version how to view -Windows 64-bit OS (3)

Download and use chromeDriver -Windows 64-bit system (4)

Download and install Python for Windows 64-bit (5)

PyCharm open the Python project and import packages and modules -Windows 64-bit

Taobao_seckill_anyi Project configuration and running main.py (7)

If you can’t read this, that’s my problem, because I’m writing this column so that people who don’t know anything about programming can run projects.

Find me directly on wechat.

And the public,

Pay attention to the public number, reply in the chat: weixin, add my wechat, hand in hand teaching download installation and use

Taobao purchase code address

I’m very sorry that CSDN has something to do and cannot send the code address.

Scan the qr code to follow the public account, reply: pythonTB

Jingdong purchase code address

I’m very sorry that CSDN has something to do and cannot send the code address.

Scan the qr code to follow the public account, reply: pythonJD

Is the code on Github up to date

It is suggested that the teacher add a date at the end of the file name when updating the code. Now I don’t know if the code is up to date

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

The directory C:\Users\86155\Desktop\taobao_seckill_anyi-master\taobao_seckill_anyi-master is registered as a Git root, but no Git repositories were found there.

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

The TWO-DIMENSIONAL code is out, but I can’t scan it. I don’t know if it’s a resolution problem or something. How can I solve this problem

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

[‘ addressList ‘] : [‘ addressList ‘] : [‘ addressList ‘]

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Excuse me why my EID and FP are the same every day? Can you refresh it? Thank you very much!

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Teachers are advised to add a date at the end of the file name when updating the code. Now I don’t know if the code is up to date. How do I check if my code is up to date

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

No submit button found, page not loaded, try again

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Modify 4 parameters in config.ini file, mouse pointer is still in the same place automatically. It appears that the configuration file is not in effect.

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

How to disable headless browser? And the location of the submit button can just be measured and written in the configuration file?

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

[fixed] seckill_taobao. Py max_retry_count = 10

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Unable to find chromedriver, Please check the drive path… AttributeError: ‘NoneType’ object has no attribute ‘get’

Problem Description:

C:\download\taobao_seckill_anyi-master\venv\Scripts\python.exe C:/download/taobao_seckill_anyi-master/main.py 2021-01-07  19:58:46 Unable to find chromedriver, Please check the drive path. Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\38374\AppData\Local\Programs\Python\Python38\lib\tkinter\__init__.py", line 1895, in __call__ return self.func(*args) File "C:/download/taobao_seckill_anyi-master/main.py", line 40, In <lambda> b1 = Button(win, text = '0 ', command = lambda: run_killer(txt, txt2)) File "C:/download/taobao_seckill_anyi-master/main.py", line 14, in run_killer ChromeDrive(seckill_time = seckill_time, password = password).sec_kill() File "C:\download\taobao_seckill_anyi-master\seckill\seckill_taobao.py", line 139, in sec_kill self.keep_wait() File "C:\download\taobao_seckill_anyi-master\seckill\seckill_taobao.py", line 124, in keep_wait self._login() File "C:\download\taobao_seckill_anyi-master\seckill\seckill_taobao.py", line 106, in _login self.driver.get(login_url) AttributeError: 'NoneType' object has no attribute 'get' Process finished with exit code 0Copy the code

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Disable automatic fetching of EID and FP to avoid errors automatically fetching JdTdudfp will be read from the configuration file!

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Eid, FP is for what ah

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

A process is too slow with Python scripts. How does the latest code change the number of processes to increase my request speed

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

There is too much error between the local time and the network time of JINGdong. How to update the local time to the network time

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

At INFO: page_title: home Appliances, page_url:Jiadian.jd.com/ 】 it’s stuck

Problem Description:

[I:pyppeteer.launcher] Browser listening on: Ws: / / 127.0.0.1:53115 / devtools/browser/cc67905e fba - 0691-4-9 f33 - f39655f77393 09:41:54, 2021-01-07-48278 - MainThread - 093 /Users/chenhx/Desktop/github/jd_seckill_anyi/jd_seckill/jd_spider_requests.py[line:312] - INFO: Page_title: **(***)- Authentic low price, quality assurance, delivery timely, easy shopping! . Page_url [https://www.****.com/] 2021-01-07 09:41:56, 900-48278 -MainThread - /Users/chenhx/Desktop/github/jd_seckill_anyi/jd_seckill/jd_spider_requests.py[line:327] - INFO: Page_title: "home appliances", page_url: [https:// * * *. * * * *. Com /]Copy the code

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Can you add the function of automatic closing after failure or success

Problem description: Some friends may open the computer running scripts, but something to go. Then you need a function to automatically close the script. After all, keep asking for an interface, which is bound to be risk controlled.

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

PyCharm runs PyAutoGUI. How do I turn on PyCharm on a MAC

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Four parameters are described in the project configuration file config.ini

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

How do I install PyAutoGUI using PyCharm

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

How to install PyAutoGUI using the Command Line (How to install PyAutoGUI using a terminal)

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

For Taobao to deal with Selenium anti-creeping strategy speculation

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

The latest version of the code can automatically obtain eid and FP in the program

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

(Caused by SSLError(SSLError(1, ‘[SSL: verify_failed] Certificate Verify Failed (_SSL.c :833)’),)

Problem Description:

[W:pyppeteer.chromium_downloader] start chromium download. Download may take a few minutes. [W:pyppeteer.chromium_downloader] start chromium download. Download may take a few minutes. HTTPSConnectionPool(host= 'storage.googleapis.com', port=443): Max retries exceeded with URL: /chromium-browser-snapshots/ win_x64/575458 / chromium-win32.zip (Caused by SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] Certificate Verify Failed (_SSL.c :833),))Copy the code

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

And jingdong time error *** how many milliseconds is defined, how to judge the positive and negative

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

[‘ addressList ‘], I want to update eid, FP, but I want to place an order, press F12, I want to update EID and FP, what should I do?

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

I used 360 speed browser and chrome87 browser to obtain eid and fp at the same time, and found that the two values of the two browsers are different, may I ask which one shall prevail

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Why not book ordinary goods, why not snap up other goods

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Traceback (most recent call last): requests.exceptions.TooManyRedirects: Exceeded 30 redirects.

Problem Description:

--- Logging error --- Traceback (most recent call last): File "/Users/chenhx/Desktop/github/jd_seckill_anyi/jd_seckill/jd_spider_requests.py", line 458, in _seckill self.submit_seckill_order() File "/Users/chenhx/Desktop/github/jd_seckill_anyi/jd_seckill/jd_spider_requests.py", line 704, in submit_seckill_order resp = self.session.post( File "/ Users/chenhx/Desktop/lot/jd_seckill_anyi/venv/lib/python3.8 / site - packages/requests/sessions. Py", line 578, in post return self.request('POST', url, data=data, json=json, * * kwargs) File "/ Users/chenhx/Desktop/lot/jd_seckill_anyi/venv/lib/python3.8 / site - packages/requests/sessions. Py", line 530, in request resp = self.send(prep, **send_kwargs) File "/ Users/chenhx/Desktop/lot/jd_seckill_anyi/venv/lib/python3.8 / site - packages/requests/sessions. Py", line 665, in send history = [resp for resp in gen] if allow_redirects else [] File "/ Users/chenhx/Desktop/lot/jd_seckill_anyi/venv/lib/python3.8 / site - packages/requests/sessions. Py", line 665, in <listcomp> history = [resp for resp in gen] if allow_redirects else [] File "/ Users/chenhx/Desktop/lot/jd_seckill_anyi/venv/lib/python3.8 / site - packages/requests/sessions. Py", line 166, in resolve_redirects raise TooManyRedirects('Exceeded {} redirects.'.format(self.max_redirects), response=resp) requests.exceptions.TooManyRedirects: Exceeded 30 redirects. During handling of the above exception, another exception occurred: Traceback (most recent call last): The File "/ Library/Frameworks/Python framework Versions / 3.8 / lib/python3.8 / logging/set py", line 1081, in emit msg = self.format(record) File "/ Library/Frameworks/Python framework Versions / 3.8 / lib/python3.8 / logging/set py", line 925, in format return fmt.format(record) File "/ Library/Frameworks/Python framework Versions / 3.8 / lib/python3.8 / logging/set py", line 664, in format record.message = record.getMessage() File "/ Library/Frameworks/Python framework Versions / 3.8 / lib/python3.8 / logging/set py", line 369, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "<string>", line 1, In < module > File "/ Library/Frameworks/Python framework Versions / 3.8 / lib/python3.8 / multiprocessing/spawn py", line 116, in spawn_main exitcode = _main(fd, Parent_sentinel) File "/ Library/Frameworks/Python framework Versions / 3.8 / lib/python3.8 / multiprocessing/spawn py", line 129, in _main return self._bootstrap(parent_sentinel) File "/ Library/Frameworks/Python framework Versions / 3.8 / lib/python3.8 / multiprocessing/process. Py", line 315, in _bootstrap self.run() File "/ Library/Frameworks/Python framework Versions / 3.8 / lib/python3.8 / multiprocessing/process. Py", line 108, in run self._target(*self._args, * * self. _kwargs) File "/ Library/Frameworks/Python framework Versions / 3.8 / lib/python3.8 / concurrent/futures/process. Py", line 239, in _process_worker r = call_item.fn(*call_item.args, **call_item.kwargs) File "/Users/chenhx/Desktop/github/jd_seckill_anyi/jd_seckill/jd_spider_requests.py", line 409, in new_func return func(self, *args, **kwargs) File "/Users/chenhx/Desktop/github/jd_seckill_anyi/jd_seckill/jd_spider_requests.py", line 424, in seckill self._seckill() File "/Users/chenhx/Desktop/github/jd_seckill_anyi/jd_seckill/jd_spider_requests.py", Line 461, in _seckill logger.info(' Snap up an exception, continue later! ', e) Message: 'Exception occurred, continue later! ' Arguments: (TooManyRedirects('Exceeded 30 redirects.'),)Copy the code

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

How do I switch jingdong account login in Python script

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Chenhx.blog.csdn.net/article/det…

How to deal with the expiration of jingdong’s login QR code

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

On the ChromeDriver download page, how to download according to the system

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Exception in Tkinter callback KeyboardInterrupt

Problem Description:

Exception in Tkinter callback Traceback (most recent call last): The File "/ Library/Frameworks/Python framework Versions / 3.8 / lib/python3.8 / tkinter/set py", line 1895, in __call__ return self.func(*args) File "/Users/chenhx/Desktop/github/taobao_seckill/main.py", line 37, In <lambda> b1 = Button(win, text = '0 ', command = lambda: run_killer(txt, txt2)) File "/Users/chenhx/Desktop/github/taobao_seckill/main.py", line 13, in run_killer ChromeDrive(seckill_time = seckill_time, password = password).sec_kill() File "/Users/chenhx/Desktop/github/taobao_seckill/seckill/seckill_taobao.py", line 127, in sec_kill self.keep_wait() File "/Users/chenhx/Desktop/github/taobao_seckill/seckill/seckill_taobao.py", line 120, in keep_wait sleep(60) KeyboardInterruptCopy the code

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

AttributeError: ‘NoneType’ object has no attribute ‘get’

Problem Description:

Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\48797\AppData\Local\Programs\Python\Python38\lib\tkinter\__init__.py", line 1883, In __call__ return self.func(*args) File "D:/ script - taobao_seckill20210104/taobao_seckill/main.py", line 37, In <lambda> b1 = Button(win, text = '0 ', command = lambda: Run_killer (TXT, txT2)) File "D:/ script - taobao_seckill20210104/taobao_seckill/main.py", line 13, in run_killer ChromeDrive(seckill_time = seckill_time, Password = password).sec_kill() File "D:\ script -taobao_seckill20210104 \taobao_seckill\seckill\seckill_taobao. Py ", Line 127, in sec_kill self.keep_wait() File "D:\ script -taobao_seckill20210104 \taobao_seckill\seckill\seckill_taobao. Py ", Line 113, in keep_wait self._login() File "D:\ script -taobao_seckill20210104 \taobao_seckill\seckill\seckill_taobao. Py ", line 95, in _login self.driver.get(login_url) AttributeError: 'NoneType' object has no attribute 'get'Copy the code

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Taobao shopping cart, the number of Maotai need to set

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

ERROR:ssl_client_socket_openssl.cc(1158)] handshake failed; returned -1, SSL error code 1, net_error -100

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

ModuleNotFoundError: No module named ‘Selenium’

Question details:

Traceback (most recent call last):
  File "/Users/chenhx/Desktop/github/taobao_seckill/main.py", line 6, in <module>
    from seckill.seckill_taobao import ChromeDrive
  File "/Users/chenhx/Desktop/github/taobao_seckill/seckill/seckill_taobao.py", line 11, in <module>
    from selenium import webdriver
ModuleNotFoundError: No module named 'selenium'
Copy the code

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Jingdong EID and FP have been available, but where is the config.ini file and how can I get it

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

When the time is up on my side, it also displays “buying failed, unable to obtain the basic information of the order generation, the interface returns: NULL”, what is the matter?

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

I would like to ask why there is no response after entering 2 after the jingdong script is run

Problem Description:

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

I opened main 1 minute earlier, and then chose 2, and nothing happened by 10 o ‘clock

Problem Description:

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Is the reservation function of JD invalid? Or will it be tomorrow at that time?

Problem Description:

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

After PyCharm is installed, Python Interpreter only has these two packages

Problem Description:

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Jingdong script modification how to modify the number of snap up

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Several ways for JD Moutai to improve the success rate of buying (reduce the probability of being controlled by JD risk)

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Import Requests ModuleNotFoundError: No module named ‘requests’

Problem Description:

    import requests
ModuleNotFoundError: No module named 'requests'
Copy the code

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Chenhx.blog.csdn.net/article/det…

These two articles contain different solutions.

FileNotFoundError: No such file: config.ini

Problem Description:

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

How to obtain JINGdong EID and FP from Linux command line

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

ModuleNotFoundError: No module named ‘LXML’

Problem Description:

python main.py Traceback (most recent call last): The File "main. Py", line 3, In the from jd_spider_requests import JdSeckill File "/ Users/chenhx/Desktop/lot/jd_seckill/jd_spider_requests py", Line 10, in from LXML import etree ModuleNotFoundError: No module named 'LXML'Copy the code

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Chenhx.blog.csdn.net/article/det…

Python coding issues

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

How to upgrade python2 to Python3

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

PIP install LXML execution error

Problem Description:

DEPRECATION: Python 2.7 reached the end of its life on January 1st, Please upgrade your Python as Python 2.7 is no longer maintained. PIP 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support 21.0 PIP will remove the support for this functionality. Defaulting to user installation because normal site-packages is not writeable Requirement already Satisfied: LXML in/Users/chenhx/Library/Python / 2.7 / lib/Python/site - packages (4.5.1)Copy the code

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Chrome download and Installation (including Windows and MAC)

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Download and install Chrome Driver for chrome version

The script to run Taobao/Tmall supermarket is tested using a headless browser. Must install: ChromeDriver

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Can’t find the corresponding Chrome driver

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Taobao, Tmall supermarket shopping notes

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Taobao, Tmall snap up & configuration tutorial

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

How to obtain eid and FP in config.ini configuration of the jd_seckill_anyi project

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Chenhx.blog.csdn.net/article/det…

A more convenient way to obtain EID and FP – through HTML files

How to set buy_time in config.ini configuration of jd_seckill_anyi project

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

How to set DEFAULT_USER_AGENT in config.ini configuration in jd_seckill_anyi project? Should I set DEFAULT_USER_AGENT

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

How to set payment_pwd in config.ini configuration in jd_seckill_anyi project

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Jd_seckill_anyi project running error: buying link failed, automatic retry later, what is the problem

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

What if there are multiple Python versions on this machine

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Chenhx.blog.csdn.net/article/det…

Jd_seckill_anyi project may cause jingdong account to become black number behavior

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

multiprocess segfault on OSX

Problem Description:

Process: Python [39974] Path: / System/Library/Frameworks/Python framework Versions / 3.7 / Resources/Python. The app/Contents/MacOS/Python Identifier: Python Version: 3.7 Code Type: x86-64 (Native) Parent Process: Python [39965] Responsible: Terminal [258] User ID: 501 Date/Time: 2016-02-19 12:05:12.981 +0000 OS Version: Mac OS X 10.14.6 Report Version: 11 Anonymous UUID: 36B6C9B8-4E1D-FCD0-677F-7B3719CA910C Sleep/Wake UUID: B6BE108A-FCFD-460C-8778-4DB9AED9AB21 Time Awake Since Boot: 970000 seconds Time Since Wake: 3300 seconds Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000110 VM Regions Near 0x110:-->__TEXT 000000010e700000-000000010e701000 [ 4K] r-x/rwx SM=COW / System/Library/Frameworks/Python framework Versions / 3.7 / Resources/Python. The app/Contents/MacOS/Python

Copy the code

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Jd_seckill_anyi project error: Snap up failed, unable to obtain the basic information of the generated order, interface return: [‘ addressList ‘]

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Does PyCharm need to be checked when you install it

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

How to choose a version of Python

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Tmall supermarket maotai purchase must pay password input in the program

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Do YOU need a plus member to grab Maotai on JINGdong

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Jingdong grab Maotai need to configure accounts

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

My JINGdong account is under risk control, what should I do

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

How to reduce the probability of being controlled by JD risk

Articles containing solutions address: chenhx.blog.csdn.net/article/det…

Unable to find chromedriver, Please check the drive path.

Articles containing solutions address: chenhx.blog.csdn.net/article/det…