zas023 / JdBuyer

京东抢购自动下单助手,GUI 支持 Windows 和 macOS
4.16k stars 901 forks source link

貌似失效了,https://item-soa.jd.com/getWareBusiness #65

Open Splinter1 opened 1 year ago

Splinter1 commented 1 year ago

https://item-soa.jd.com/getWareBusiness 这个导致的

njsgdd10086 commented 1 year ago

是的 修修补补还是能用的 image

大佬能pr一下吗,非常感谢!

SCCCR commented 1 year ago

是的 修修补补还是能用的 image

大佬能否发个PR

Icesnowcube commented 1 year ago

是的 修修补补还是能用的 image

求PR

SCCCR commented 1 year ago

测试了几天 还是抢不到 兄弟们散了吧 此项目已停更

老哥,你是可以跑起来么?我看https://item-soa.jd.com/getWareBusiness 这个接口已经失效了

Jozoazhua commented 1 year ago
    url = 'https://api.m.jd.com/'
    headers = {
        'User-Agent': self.userAgent,
        'x-referer-page': 'https://item.jd.com/{}.html'.format(skuId),
        'Referer': 'https://item.jd.com/',
    }
    params = {
        'appid': 'pc-item-soa',
        'functionId': 'pc_detailpage_wareBusiness',
        'client': 'pc',
        'clientVersion': '1.0.0',
        'loginType': 3,
        't': int(time.time() * 1000),
        'body': {
            "skuId": skuId,
            "area": areaId,
            "paramJson": "{\"platform2\":\"1\",\"specialAttrStr\":\"p0ppppppppp2p1ppppppppppppp\",\"skuMarkStr\":\"00\"}",
            "num": skuNum,
            "bbTraffic": ""
        },
    }

    resp = self.sess.get(url=url, params=params, headers=headers)
Splinter1 commented 1 year ago
    url = 'https://api.m.jd.com/'
    headers = {
        'User-Agent': self.userAgent,
        'x-referer-page': 'https://item.jd.com/{}.html'.format(skuId),
        'Referer': 'https://item.jd.com/',
    }
    params = {
        'appid': 'pc-item-soa',
        'functionId': 'pc_detailpage_wareBusiness',
        'client': 'pc',
        'clientVersion': '1.0.0',
        'loginType': 3,
        't': int(time.time() * 1000),
        'body': {
            "skuId": skuId,
            "area": areaId,
            "paramJson": "{\"platform2\":\"1\",\"specialAttrStr\":\"p0ppppppppp2p1ppppppppppppp\",\"skuMarkStr\":\"00\"}",
            "num": skuNum,
            "bbTraffic": ""
        },
    }

    resp = self.sess.get(url=url, params=params, headers=headers)

这是替换接口么?

SCCCR commented 1 year ago

网页端cookie失效时间太快了

有啥别的解决方案么?比如移动端搞个物理装置,操作自动化

FodderFish commented 1 year ago

TODO: 1.优化下单逻辑以及下单速度 2.优化监控接口以及监控速率 3.增长用户cookie有效期 目前我做了优化但是还是不够,0.2s轮询监控。0.5秒执行下单返回库存空 项目停更 愿意交流技术的可以来一起头脑风暴 Q群 867338368

FodderFish commented 1 year ago

image 求人不如求己 成功下车 再见

DeraDream commented 1 year ago

image 求人不如求己 成功下车 再见

大佬,能发一份源码吗,474530741@qq.com、感激不尽

TeQuieroS commented 1 year ago

image 求人不如求己 成功下车 再见

跪求一份代码,1487954322@qq.com,感谢兄弟

youBlush commented 1 year ago

图像求人不如求己 成功下车 再见

代码可以发一份吗?3140929681@qq.com

lgr595555169 commented 1 year ago

image 求人不如求己 成功下车 再见

求一个解决办法,595555169@qq.com

cv-mark commented 1 year ago

image 求人不如求己 成功下车 再见 老哥,能发一份源码麽315971353@qq.com,感谢

2388326078 commented 10 months ago

image 求人不如求己 成功下车 再见

老哥跪求代码2388326078@qq.com

Yoyo-Luming commented 3 months ago

image 求人不如求己 成功下车 再见

求源码1766418763@qq.com