写点什么

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

用户头像
谙忆
关注
发布于: 2021 年 01 月 06 日

原文地址:

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


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


专栏文章的更新时间可以看这篇文章:

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


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


声明与注意事项:


  • 代码免费,且仅供研究与学习 Python 之用,请勿用于非法,后果自行承担。

  • 个人研究请于下载后 24 小时之内进行删除。

  • 专栏提供的是学习研究 Python 过程中遇到问题的解决方案、以及一些详细的安装使用教程,与爬虫代码无关。

  • 订阅的朋友可以私信本人免费帮忙解决一些简单的 Python 问题(注意关注我的 CSDN,否则私信会受限制)

  • 如果您是完完全全没有接触过 Python、没接触过编程的小白(通过我的文章或者指导还是无法自行解决问题),可以找我有 chang 服务(远程帮您操作,运行一套完整的解决方案,未安装运行成功全额退款),价格:订阅的朋友单次 99,未订阅的朋友单次 199(定金 70%,尾款 30%)。


淘宝抢购的代码地址


https://github.com/chenhaoxiang/taobao_seckill_anyi


这是我 fork 原来作者的,并且在他的基础上可能进行迭代。


京东抢购的代码地址


https://github.com/chenhaoxiang/jd_seckill_anyi


这是我 fork 原来作者的,并且在他的基础上可能进行迭代。


最新版本的代码可以在程序中自动获取 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)’),))123
复制代码


含有解决方案的文章地址:

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.argsTypeError: not all arguments converted during string formattingCall 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.'),)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
复制代码


含有解决方案的文章地址:

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 callbackTraceback (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)KeyboardInterrupt12345678910111213
复制代码


含有解决方案的文章地址:

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


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


问题描述:


Exception in Tkinter callbackTraceback (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'123456789101112131415
复制代码


含有解决方案的文章地址:

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 webdriverModuleNotFoundError: No module named 'selenium'123456
复制代码


含有解决方案的文章地址:

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 为啥没反应


问题描述:



含有解决方案的文章地址:

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


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


问题描述:



含有解决方案的文章地址:

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


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


问题描述:



含有解决方案的文章地址:

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


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


问题描述:



含有解决方案的文章地址:

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 requestsModuleNotFoundError: No module named 'requests'12
复制代码


含有解决方案的文章地址:

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


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


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


FileNotFoundError: No such file: config.ini


问题描述:



含有解决方案的文章地址:

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.pyTraceback (most recent call last):File “main.py”, line 3, infrom jd_spider_requests import JdSeckillFile “/Users/chenhx/Desktop/github/jd_seckill/jd_spider_requests.py”, line 10, infrom lxml import etreeModuleNotFoundError: No module named ‘lxml’1234567
复制代码


含有解决方案的文章地址:

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 writeableRequirement already satisfied: lxml in /Users/chenhx/Library/Python/2.7/lib/python/site-packages (4.5.1)123
复制代码


含有解决方案的文章地址:

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/PythonIdentifier: PythonVersion: 3.7Code Type: X86-64 (Native)Parent Process: Python [39965]Responsible: Terminal [258]User ID: 501
Date/Time: 2016-02-19 12:05:12.981 +0000OS Version: Mac OS X 10.14.6Report Version: 11Anonymous UUID: 36B6C9B8-4E1D-FCD0-677F-7B3719CA910C
Sleep/Wake UUID: B6BE108A-FCFD-460C-8778-4DB9AED9AB21
Time Awake Since Boot: 970000 secondsTime 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
12345678910111213141516171819202122232425262728
复制代码


含有解决方案的文章地址:

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


用户头像

谙忆

关注

CSDN博客专家 2020.02.07 加入

公众号:程序编程之旅。曾经写过C、C++,使用过Cocos2dx开发过游戏、安卓端、IOS端、PC端页面均开发过。目前专注Java开发,SaaS内核、元数据的研究。偶尔玩玩爬虫。 https://chenhx.blog.csdn.net/

评论

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