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

【教程】关于如何正确获取百度指数的cookies #62

Open
longxiaofei opened this issue Oct 20, 2021 · 0 comments
Open

【教程】关于如何正确获取百度指数的cookies #62

longxiaofei opened this issue Oct 20, 2021 · 0 comments

Comments

@longxiaofei
Copy link
Owner

第一种方式

  1. 打开百度首页,登录。
  2. 浏览百度指数网页。
  3. 重新打开百度首页,找到 www.baidu.com 此条 GET 请求,并复制此条请求 request headers 里的 cookies。

第二种方式

执行以下代码,出现二维码后进行扫码并登录,手机提示登录成功后,然后关闭二维码框。

from qdata.baidu_login import get_cookie_by_qr_login

if __name__ == "__main__":
    print(get_cookie_by_qr_login())
@longxiaofei longxiaofei changed the title 如何正确获取百度指数的cookies? 【教程】关于如何正确获取百度指数的cookies Oct 20, 2021
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

1 participant