如何在Google App Engine中使用Whois [英] How to use whois in google app engine
问题描述
我知道有 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屋!