pywhois

error when using pywhois

三世轮回 提交于 2019-12-29 08:01:31
问题 I tryed to use pywhois to check domain availability: import pywhois try: w = pywhois.whois('domain_name') message='Domain is available' except: message='Domain is not available' but I get this error: 'module' object has no attribute 'whois' I installed pywhois with this command: easy_install pywhois It was installed successfully,what I missed? Edit: the best and more stable way to check domain availability is this way: try: import socket socket.gethostbyname_ex('domain_name') message='Domain

error when using pywhois

放肆的年华 提交于 2019-12-29 08:01:14
问题 I tryed to use pywhois to check domain availability: import pywhois try: w = pywhois.whois('domain_name') message='Domain is available' except: message='Domain is not available' but I get this error: 'module' object has no attribute 'whois' I installed pywhois with this command: easy_install pywhois It was installed successfully,what I missed? Edit: the best and more stable way to check domain availability is this way: try: import socket socket.gethostbyname_ex('domain_name') message='Domain

how to use pywhois module in gae

浪尽此生 提交于 2019-12-12 05:39:47
问题 I have problems when try to import pywhois module, i can import my own module but still have troubles when import pywhois. I moved the pywhois folder in my project folder domain , the screentshot is below: This is the import and calling statment below: import part: from pywhois import * calling part: w = whois('hackbo.com') self.response.out.write(w) The problems is it will always throw a http 500 error, error text is below: Traceback (most recent call last): File "/home/li/Desktop/google

a stable way to check domain availability with pywhois

点点圈 提交于 2019-12-11 17:39:58
问题 I use this code to check domain availability: try: w = pywhois.whois('honarasai.com') if not w: message='Domain is available' except: message='Domain is taken' It returns this result: creation_date: ['11-jun-2012'] domain_name: ['HONARASAI.COM', 'honarasai.com'] emails: ['domain@netafraz.com', 'domain@netafraz.com', 'domain@netafraz.com', 'domain@netafraz.com'] expiration_date: ['11-jun-2013'] name_servers: ['NS.HONARASAI.COM', 'NS2.HONARASAI.COM'] referral_url: ['http://www.OnlineNIC.com']

Installing a Python module in Windows

巧了我就是萌 提交于 2019-12-10 10:48:22
问题 I'm trying to install a Python module on my Windows computer. I installed the development version of the NetBeans IDE to use as my Python editor, and it seems that they install Jython 2.5 under their own program folder, and force you to use that installation for development. I've been trying to install the PyWhois module for half an hour now, and I'm getting pretty infuriated with the kludginess of developing Python on Windows with Netbeans. Does anyone know how to install modules with this

How to find out programmatically if a domain name is registered or not

拟墨画扇 提交于 2019-12-03 14:55:13
问题 I use pywhois to determine if a domain name is registered or not. Here is my source code. (all permutations from a.net to zzz.net ) #!/usr/bin/env python import whois #pip install python-whois import string import itertools def main(): characters = list(string.ascii_lowercase) ##domain names generator for r in range(1, 4) : for name in itertools.permutations(characters, r) : #from 'a.net' to 'zzz.net' url = ''.join(name) + '.net' #check if a domain name is registered or not try : w = whois

error when using pywhois

蹲街弑〆低调 提交于 2019-11-29 12:10:52
I tryed to use pywhois to check domain availability: import pywhois try: w = pywhois.whois('domain_name') message='Domain is available' except: message='Domain is not available' but I get this error: 'module' object has no attribute 'whois' I installed pywhois with this command: easy_install pywhois It was installed successfully,what I missed? Edit: the best and more stable way to check domain availability is this way: try: import socket socket.gethostbyname_ex('domain_name') message='Domain is not available' except: message='Domain is available' easy_install pywhois installs a different tool