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

豆瓣登录问题 #17

Closed
SummerDiver opened this issue Apr 18, 2020 · 2 comments
Closed

豆瓣登录问题 #17

SummerDiver opened this issue Apr 18, 2020 · 2 comments

Comments

@SummerDiver
Copy link

尝试自行编写代码模拟登录豆瓣:

import requests

login_url = 'https://accounts.douban.com/j/mobile/login/basic'
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.116 Safari/537.36',
    'Host': 'accounts.douban.com',
    'Origin': 'https://accounts.douban.com',
    'Referer': 'https://accounts.douban.com/passport/login?source=movie'}
data = {'ck': '',
        'name': 'xxxx',
        'password': 'xxxx',
        'remember': 'true',
        'ticket': ''}
r = requests.post(login_url, data=data, headers=headers)
print(r.text)

得到的结果却是:
{"status":"failed","message":"parameter_missing","description":"参数缺失","payload":{}}
不知是什么原因?新手看源码懵懵的。。

@CharlesPikachu
Copy link
Owner

最新版本的DecryptLogin已经没有这个问题了

@SummerDiver
Copy link
Author

最新版本的DecryptLogin已经没有这个问题了

谢谢,辛苦啦

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

2 participants