Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Splinter1 opened this issue Jun 5, 2023 · 16 comments
Open

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

Splinter1 opened this issue Jun 5, 2023 · 16 comments

Comments

@Splinter1
Copy link

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

@njsgdd10086
Copy link

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

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

@SCCCR
Copy link

SCCCR commented Jun 19, 2023

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

大佬能否发个PR

@Icesnowcube
Copy link

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

求PR

@SCCCR
Copy link

SCCCR commented Jun 20, 2023

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

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

@Jozoazhua
Copy link

    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
Copy link
Author

    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
Copy link

SCCCR commented Jun 26, 2023

网页端cookie失效时间太快了

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

@FodderFish
Copy link

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

@FodderFish
Copy link

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

@DeraDream
Copy link

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

大佬,能发一份源码吗,[email protected]、感激不尽

@TeQuieroS
Copy link

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

跪求一份代码,[email protected],感谢兄弟

@youBlush
Copy link

youBlush commented Sep 9, 2023

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

代码可以发一份吗?[email protected]

@lgr595555169
Copy link

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

求一个解决办法,[email protected]

@cv-mark
Copy link

cv-mark commented Sep 28, 2023

image 求人不如求己 成功下车 再见
老哥,能发一份源码麽[email protected],感谢

@2388326078
Copy link

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

老哥跪求代码[email protected]

@Yoyo-Luming
Copy link

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

求源码[email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests