302day(模拟登录GitHub)

《2018年7月31日》【连续302天】

标题:模拟登录GitHub;

内容:

看书:

以github实例模拟登录:
进入https://github.com/login

打开开发者工具,勾选Preserve Log:

登录:

恢复到登录前:

在response headers中有个

在源码中找到authenticity_token

这样就获得了所有信息;

参考代码:https://github.com/Python3WebSpider/GithubLogin/blob/master/login.py

猜你喜欢

转载自blog.csdn.net/orangecloudy/article/details/81295096