Python的 - 如何要求的网页从网站上使用OpenID [英] Python - How to request pages from website that uses OpenID

查看:708
本文介绍了Python的 - 如何要求的网页从网站上使用OpenID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写一刮网站,在该网站使用OpenID身份验证通过谷歌,以确定我一个Python脚本。

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

有一个Python库将处理为我做到这一点,或者我需要找出并复制的步骤,我的浏览器已经这样做了?

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?

推荐答案

从客户端的角度来看,OpenID登录非常类似于任何其他基于网络的登录。没有为客户端定义的协议;它是变化的基础上您的OpenID提供商的普通Web会话。出于这个原因,我怀疑任何此类的库中。你可能会需要code它自己。

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.

这篇关于Python的 - 如何要求的网页从网站上使用OpenID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆