Python项目代码使用过程中遇到的Python问题汇总索引目录【淘宝-天猫超市、京东】

时间:2021-1-8 作者:admin

1499飞天茅台脚本使用过程中遇到的Python问题汇总索引目录【淘宝-天猫超市、京东】

文章目录

原文地址:
https://chenhx.blog.csdn.net/article/details/112251735

本文最后更新时间:2021年1月7日 20点12分(本文章是问题索引,您遇到问题,直接在本文中内搜索关键字)

专栏文章的更新时间可以看这篇文章:
https://chenhx.blog.csdn.net/article/details/112154394

介于最近问文章中已经给出问题解答的朋友越来越多。特把以前的一些问题进行一个汇总,在这里大家可以通过异常或者问题关键字,直接搜索,就可以查找到自己需要的问题,如果没有搜索到。再私信(CSDN有个问题,24小时只能与5个陌生人沟通,您关注之后成为粉丝就可以无限沟通了)。

郑重声明与注意事项:

  • 代码免费,且仅供研究与学习Python之用,请勿用于非法,后果自行承担。
  • 个人研究请于下载后24小时之内进行删除。
  • 专栏提供的是学习研究Python过程中遇到问题的解决方案、以及一些详细的安装使用教程,与爬虫代码无关。
  • 订阅的朋友可以私信本人免费帮忙解决一些简单的Python问题(注意关注我的CSDN,否则私信会受限制)
  • 如果您是完完全全没有接触过Python、没接触过编程的小白(通过我的文章或者指导还是无法自行解决问题),可以找我有chang服务(远程帮您操作,运行一套完整的解决方案,未安装运行成功全额退款),价格:订阅的朋友单次99,未订阅的朋友单次199(定金70%,尾款30%)。
  • 且行且珍惜

淘宝抢购的代码地址

非常抱歉,csdn搞事情,发不了代码地址了。

扫公众号
Python项目代码使用过程中遇到的Python问题汇总索引目录【淘宝-天猫超市、京东】
回复:pythontb

京东抢购的代码地址

非常抱歉,csdn搞事情,发不了代码地址了。

扫公众号回复:pythonjd

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

问题描述:

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 = '开始', 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 0

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112334638

关闭自动获取eid和fp,避免报错自动获取JdTdudfp发生异常,将从配置文件读取!

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112328141

eid,fp是干嘛用的啊

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112328141

用Python脚本一个进程太慢了,最新的代码怎么修改进程的数量,增加我的请求速度

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112328141

本地时间与京东的网络时间误差太多,怎么更新本地的时间为网络时间

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112328141

在INFO: page_title:【家用电器】, page_url:【https://jiadian.jd.com/】卡住不动了

问题描述:

[I:pyppeteer.launcher] Browser listening on: ws://127.0.0.1:53115/devtools/browser/cc67905e-0691-4fba-9f33-f39655f77393
2021-01-07 09:41:54,093 - 48278-MainThread - /Users/chenhx/Desktop/github/jd_seckill_anyi/jd_seckill/jd_spider_requests.py[line:312] - INFO: page_title:【**(***)-正品低价、品质保障、配送及时、轻松购物!】, 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:【家用电器】, page_url:【https://***.****.com/】

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112328141

抢购失败或者成功后能不能增加自动关闭的功能

问题描述:
有些朋友可能开着电脑运行脚本,但是有事去了。那么就需要一个自动关闭脚本的功能。
毕竟,一直请求接口,那是肯定会被风控的。

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112328141

PyCharm运行pyautogui,mac电脑如何打开PyCharm的辅助功能

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112299409

项目配置文件config.ini中四个参数说明

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112299409

如何使用PyCharm安装pyautogui

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112299409

如何使用命令行安装pyautogui(如何使用终端安装pyautogui)

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112299409

对于淘宝应对Selenium的反爬策略猜测

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112299409

最新版本的代码可以在程序中自动获取eid和fp

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112294641

(Caused by SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)’),))

问题描述:

[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/chrome-win32.zip (Caused by SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)),))

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112294641

和京东时间误差***多少毫秒是怎么界定的,正负怎么判断

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112294641

接口返回:【‘addressList’】,我想更新eid,fp,但去下订单,按F12,出来的eid和fp一直不变,怎么办呢?

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112294641

我同时用360极速浏览器和chrome87版本的浏览器获取eid、fp 发现2个浏览器的这两个值不同的,请问要用哪个为准

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112294641

预约普通的商品为什么不行,为什么不能抢购其他商品

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112294641

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

问题描述:

--- 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/github/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/github/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/github/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/github/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/github/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):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/logging/__init__.py", line 1081, in emit
    msg = self.format(record)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/logging/__init__.py", line 925, in format
    return fmt.format(record)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/logging/__init__.py", line 664, in format
    record.message = record.getMessage()
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/logging/__init__.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('抢购发生异常,稍后继续执行!', e)
Message: '抢购发生异常,稍后继续执行!'
Arguments: (TooManyRedirects('Exceeded 30 redirects.'),)

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112294641

Python脚本如何切换京东账号登录

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112208983

https://chenhx.blog.csdn.net/article/details/112164218

京东的登录二维码过期如何处理

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112208983

在chromedriver下载页面,怎么根据系统选择下载

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112207934

Exception in Tkinter callback KeyboardInterrupt

问题描述:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/tkinter/__init__.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 = '开始', 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)
KeyboardInterrupt

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112207934

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

问题描述:

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:/脚本-淘宝taobao_seckill20210104/taobao_seckill/main.py", line 37, in <lambda>
    b1 = Button(win, text = '开始', command = lambda: run_killer(txt, txt2))
  File "D:/脚本-淘宝taobao_seckill20210104/taobao_seckill/main.py", line 13, in run_killer
    ChromeDrive(seckill_time = seckill_time, password = password).sec_kill()
  File "D:\脚本-淘宝taobao_seckill20210104\taobao_seckill\seckill\seckill_taobao.py", line 127, in sec_kill
    self.keep_wait()
  File "D:\脚本-淘宝taobao_seckill20210104\taobao_seckill\seckill\seckill_taobao.py", line 113, in keep_wait
    self._login()
  File "D:\脚本-淘宝taobao_seckill20210104\taobao_seckill\seckill\seckill_taobao.py", line 95, in _login
    self.driver.get(login_url)
AttributeError: 'NoneType' object has no attribute 'get'

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112207934

淘宝购物车,茅台数量需要设置多少

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112207934

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

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112207934

ModuleNotFoundError: No module named ‘selenium’

问题详情:

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'

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112207934

京东的EID和FP也已经有了,可是config.ini这个文件在哪呢,怎么获得

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112193237

我这边到了时间之后,也是显示 “抢购失败,无法获取生成订单的基本信息,接口返回:null“, 是怎么回事呢?

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112193237

请问这个京东脚本运行后,输入2为啥没反应

问题描述:
Python项目代码使用过程中遇到的Python问题汇总索引目录【淘宝-天猫超市、京东】

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112193237

我提前1分钟打开main,然后选2,到10点没反应

问题描述:
Python项目代码使用过程中遇到的Python问题汇总索引目录【淘宝-天猫超市、京东】

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112193237

京东预约功能无效?还是到明天那个点才能行?

问题描述:
Python项目代码使用过程中遇到的Python问题汇总索引目录【淘宝-天猫超市、京东】

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112193237

pycharm安装后,Python Interpreter只有这两个Package

问题描述:
Python项目代码使用过程中遇到的Python问题汇总索引目录【淘宝-天猫超市、京东】

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112193237

京东脚本修改如何修改抢购数量

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112192881

京东茅台提高抢购成功率的几种方式(降低被京东风控的概率)

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112192881

import requests ModuleNotFoundError: No module named ‘requests‘

问题描述:

    import requests
ModuleNotFoundError: No module named 'requests'

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112192206

https://chenhx.blog.csdn.net/article/details/112058861

这两篇包含不同的解决方案。

FileNotFoundError: No such file: config.ini

问题描述:
Python项目代码使用过程中遇到的Python问题汇总索引目录【淘宝-天猫超市、京东】

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112164218

linux命令行如何获取京东的eid和fp

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112164218

windows安装lxml失败、ModuleNotFoundError: No module named ‘lxml’

问题描述:

python main.py
Traceback (most recent call last):
File “main.py”, line 3, in
from jd_spider_requests import JdSeckill
File “/Users/chenhx/Desktop/github/jd_seckill/jd_spider_requests.py”, line 10, in
from lxml import etree
ModuleNotFoundError: No module named ‘lxml’

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112164218

https://chenhx.blog.csdn.net/article/details/111995967

Python的编码问题

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/111995967

python2如何升级到python3

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/111995967

执行pip install lxml报错

问题描述:

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. 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 pip 21.0 will remove 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)

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/111995967

chrome浏览器下载与安装(包含windows和mac)

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112148962

chrome浏览器版本对应的chromedriver下载与安装教程

运行淘宝/天猫超市的脚本是使用无头浏览器来测试。
必须安装好:chromedriver

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112148962

没找到chrome浏览器版本对应的chromedriver怎么办

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112148962

淘宝、天猫超市抢购注意事项

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112148962

淘宝、天猫抢购&配置的教程

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112148962

jd_seckill_anyi项目中config.ini配置中的eid和fp怎么获取

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112130652

https://chenhx.blog.csdn.net/article/details/112069082

更加方便获取eid和fp的一种方式-通过HTML文件【京东飞天茅台1499抢购】

jd_seckill_anyi项目中config.ini配置中的buy_time怎么设置

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112130652

jd_seckill_anyi项目中config.ini配置中的DEFAULT_USER_AGENT怎么设置,要不要设置

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112130652

jd_seckill_anyi项目中config.ini配置中的payment_pwd怎么设置,要不要设置

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112130652

jd_seckill_anyi项目运行报错:抢购链接获取失败,稍后自动重试,是什么情况

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112130652

本机上有多个python版本怎么解决

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112130652

https://chenhx.blog.csdn.net/article/details/112058861

jd_seckill_anyi项目可能造成京东账号变成黒号的行为

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112130652

multiprocess segfault on OSX

问题描述:

Process: Python [39974]
Path: /System/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.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.app/Contents/MacOS/Python

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112058861

jd_seckill_anyi项目报错:抢购失败,无法获取生成订单的基本信息,接口返回:【‘addressList’】

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112069346

安装PyCharm这个软件的时候有没有需要点对勾的

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112252768

Python的版本如何选择

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112252768

天猫超市的茅台购买一定需要支付密码录入在程序里面吗

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112252768

京东上抢茅台需要充plus会员吗

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112252768

京东上抢茅台需不需要配置账号

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112252768

我的京东账号被风控了,怎么办

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112252768

如何降低自己被京东风控的概率

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112252768

Unable to find chromedriver, Please check the drive path.

含有解决方案的文章地址:
https://chenhx.blog.csdn.net/article/details/112252768

声明:本文内容由互联网用户自发贡献自行上传,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任。如果您发现有涉嫌版权的内容,欢迎进行举报,并提供相关证据,工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。