def main(args):
    '''Validate command line arguments.
       Use lib.find_emails library to find emails in a domain,
    '''
    if not validate.is_valid_domain(args.domain):
        print "Domain Name is not valid. Use valid domain name"
        sys.exit(1)

    d = find_emails.EmailsFromDomain(args.domain, args.protocol, args.maxpages)
    d.find_all_emails()
    print d
def main(args):
    '''Validate command line arguments.
       Use lib.find_emails library to find emails in a domain,
    '''
    if not validate.is_valid_domain(args.domain):
        print "Domain Name is not valid. Use valid domain name"
        sys.exit(1)

    d = find_emails.EmailsFromDomain(args.domain, args.protocol, args.maxpages)
    d.find_all_emails()
    print d
Пример #3
0
 def test_domain_name(self):
     assert validate.is_valid_domain('jana.com') is True
     assert validate.is_valid_domain('jana') is False
Пример #4
0
 def test_domain_name(self):
     assert validate.is_valid_domain('jana.com') is True
     assert validate.is_valid_domain('jana') is False