Python - How to request pages from website that uses OpenID

社会主义新天地 提交于 2019-12-11 04:19:20

问题


I'm writing a python script that scrapes a website, where the website uses OpenID auth to identify me via google.

Is there a python library that will handle do this for me, or do I need to find out and replicate the steps that my browser already does?

Otherwise, is there some standard way of doing this in some other language?


回答1:


From the client's perspective, an OpenID login is very similar to any other web-based login. There isn't a defined protocol for the client; it is an ordinary web session that varies based on your OpenID provider. For this reason, I doubt that any such libraries exist. You will probably have to code it yourself.



来源:https://stackoverflow.com/questions/6330335/python-how-to-request-pages-from-website-that-uses-openid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!