如何在Google App Engine中使用Whois [英] How to use whois in google app engine

查看:117
本文介绍了如何在Google App Engine中使用Whois的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有 pywhois 但它不能用于gae,请参阅此问题.但是我真的需要此功能来验证域是否已注册,还有其他方法可以通过纯python实现whois吗?谢谢.

I know there is pywhois but it can't used in gae, see this question. But i really need this function to verify whether a domain is registered, is there other way to implement whois by pure python? Thanks.

推荐答案

您需要找到HTTP Api才能获得 http://www.whoisxmlapi.com/并带有 urlfetch 您可以获取信息.

You need to find a HTTP Api to get whois like http://www.whoisxmlapi.com/ and with urlfetch you can fetch informations.

另一种解决方案是使用来自 AWS 的微型实例创建此Web服务并安装模块pywhois ,您只需在HTTP中创建接口.

An another solution is to create this webservice with a micro instance from AWS and install the module pywhois, you need to just create the interface in HTTP.

这篇关于如何在Google App Engine中使用Whois的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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