GithubHelp home page GithubHelp logo

jd_maotai_seckill-master's Issues

运行报错,返回的数据不是json格式

功能列表:
1.预约商品
2.秒杀抢购商品

Traceback (most recent call last):
File "main.py", line 32, in
jd_seckill = JdSeckill()
File "/Users/Glen/Develop/python/jd_maotai_seckill-master/jd_spider_requests.py", line 278, in init
self.timers = Timer()
File "/Users/Glen/Develop/python/jd_maotai_seckill-master/timer.py", line 24, in init
self.diff_time = self.local_jd_time_diff()
File "/Users/Glen/Develop/python/jd_maotai_seckill-master/timer.py", line 48, in local_jd_time_diff
return self.local_time() - self.jd_time()
File "/Users/Glen/Develop/python/jd_maotai_seckill-master/timer.py", line 33, in jd_time
js = json.loads(ret)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

cookies验证失败

Filtter抓包了,将config.ini文件中的必要cookies更新了,也抓取到了eid、fp,重新设置了时间,京东网页chrome也登录了,但是运行程序出现获取cookies失败提示
2024-04-28 14:40:38,172 - 19184-MainThread - D:\workspace2024\jd_seckill-master2\jd_seckill-master\jd_spider_requests.py[line:93] - INFO: 第【1】次失败请重新获取cookie
2024-04-28 14:40:39,409 - 19184-MainThread - D:\workspace2024\jd_seckill-master2\jd_seckill-master\jd_spider_requests.py[line:93] - INFO: 第【2】次失败请重新获取cookie

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.