#!/usr/bin/python

import optparse
import whois

def main():
    parser = optparse.OptionParser("usage %prog -u <url>")
    parser.add_option('-u', dest= 'url', type= 'string', help= 'specify URL')
    (options, args) = parser.parse_args()

    if (options.url == None):
        print parser.usage
        exit(0)

    else:
        url= options.url

    w= whois.whois(url)
    print w     #whole info
                #print any_attr

if __name__ == '__main__':
    main()

asked 11 Jul, 11:00

rubaiat's gravatar image

rubaiat
173

edited 11 Jul, 11:00

প্রোগ্রাম কী এরর দিচ্ছে?

কি এরর দেখাচ্ছে সেটা ছাড়া বলা সম্ভব না । অসম্পূর্ণ প্রশ্ন ।

(13 Aug, 21:17) ShawonAshraf
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×67

question asked: 11 Jul, 11:00

question was seen: 223 times

last updated: 13 Aug, 21:17