Results 1 issues of ll

豆瓣获取验证码那里可以get方式直接获取吗,豆瓣好像给我返回了一个假页面: 我看代码是先post数据,跳转一个页面再获取验证码,我是直接在https://www.douban.com/,上获取,然后验证码和其数据一起post,但是返回的页面是个人相关信息,不能进入其他页面,里面有什么猫腻吗: 验证码部分代码如下: def get_captcha(): # page = s.post("https://www.douban.com/accounts/login", headers=headers, data=data) #用post就可以 url = "https://www.douban.com/" page = s.get(url, headers=headers) # 先进入主页,直接获取验证码就不行 tree = etree.HTML(page.text) href = tree.xpath('//*[@id="captcha_image"]/@src')[0] img = requests.get(href)...