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

无法真正添加到购物车 #33

Open
LeonLiu0304 opened this issue Nov 30, 2017 · 2 comments
Open

无法真正添加到购物车 #33

LeonLiu0304 opened this issue Nov 30, 2017 · 2 comments

Comments

@LeonLiu0304
Copy link

LeonLiu0304 commented Nov 30, 2017

你好,代码运行后台打印结果正常,

resp = self.sess.get(link, cookies = self.cookies)
soup = bs4.BeautifulSoup(resp.text, "html.parser")
这段代码能够正常解析到resp,打印出添加购物车成功,是检查购物车的时候发现实际并没有添加进去。
请问是什么原因啊?
requests.get(link) 我自己使用这个方法可以正常添加到购物车

@wift-smith
Copy link

这个问题我也发现了,这种情况出现的原因是你购物车里有已经存在物品了,我将购物车清空之后删除cookie重新登录就可以了。如果只是情况购物车,不重新登录还是会存在你说的这个问题

@zane529
Copy link

zane529 commented May 29, 2018

我试了几次是没有登陆的结果,要重新登陆

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

4 participants
@wift-smith @zane529 @LeonLiu0304 and others