(self)
Formats site information correctly and prints it to the user's standard output.
        Returns nothing.

        Argument(s):
        No arguments are required.

        Return value(s):
        Nothing is returned from this Method.

        Restriction(s):
        The Method has no restrictions.
Formats site information correctly and prints it to the user's standard output.
        Returns nothing.
Formats site information correctly and prints it to the user s standard output . Returns nothing .
def PrintToScreenNormal(self):
        """
        Formats site information correctly and prints it to the user's standard output.
        Returns nothing.

        Argument(s):
        No arguments are required.

        Return value(s):
        Nothing is returned from this Method.

        Restriction(s):
        The Method has no restrictions.
        """
        sites = sorted(self.ListOfSites, key=attrgetter('Target'))
        target = ""
        if sites is not None:
            for site in sites:
                if not isinstance(site._regex, basestring):  # this is a multisite
                    for index in range(len(site.RegEx)):  # the regexs will ensure we have the exact number of lookups
                        siteimpprop = site.getImportantProperty(index)
                        if target != site.Target:
                            print "\n____________________     Results found for: " + site.Target + "     ____________________"
                            target = site.Target
                        if siteimpprop is None or len(siteimpprop) == 0:
                            print "No results in the " + site.FriendlyName[index] + " category"
                        else:
                            if siteimpprop[index] is None or len(siteimpprop[index]) == 0:
                                print site.ReportStringForResult[index] + ' No results found'
                            else:
                                laststring = ""
                                # if it's just a string we don't want it output like a list
                                if isinstance(siteimpprop[index], basestring):
                                    if "" + site.ReportStringForResult[index] + " " + str(siteimpprop) != laststring:
                                        print "" + site.ReportStringForResult[index] + " " + str(siteimpprop).replace('www.', 'www[.]').replace('http', 'hxxp')
                                        laststring = "" + site.ReportStringForResult[index] + " " + str(siteimpprop)
                                # must be a list since it failed the isinstance check on string
                                else:
                                    laststring = ""
                                    for siteresult in siteimpprop[index]:
                                        if "" + site.ReportStringForResult[index] + " " + str(siteresult) != laststring:
                                            print "" + site.ReportStringForResult[index] + " " + str(siteresult).replace('www.', 'www[.]').replace('http', 'hxxp')
                                            laststring = "" + site.ReportStringForResult[index] + " " + str(siteresult)
                else:  # this is a singlesite
                    siteimpprop = site.getImportantProperty(0)
                    if target != site.Target:
                        print "\n____________________     Results found for: " + site.Target + "     ____________________"
                        target = site.Target
                    if siteimpprop is None or len(siteimpprop) == 0:
                        print "No results found in the " + site.FriendlyName
                    else:
                        laststring = ""
                        # if it's just a string we don't want it output like a list
                        if isinstance(siteimpprop, basestring):
                            if "" + site.ReportStringForResult + " " + str(siteimpprop) != laststring:
                                print "" + site.ReportStringForResult + " " + str(siteimpprop).replace('www.', 'www[.]').replace('http', 'hxxp')
                                laststring = "" + site.ReportStringForResult + " " + str(siteimpprop)
                        # must be a list since it failed the isinstance check on string
                        else:
                            laststring = ""
                            for siteresult in siteimpprop:
                                if "" + site.ReportStringForResult + " " + str(siteresult) != laststring:
                                    print "" + site.ReportStringForResult + " " + str(siteresult).replace('www.', 'www[.]').replace('http', 'hxxp')
                                    laststring = "" + site.ReportStringForResult + " " + str(siteresult)
        else:
            pass
def PrintToScreenNormal ( self ) : sites = sorted ( self . ListOfSites , key = attrgetter ( 'Target' ) ) target = "" if sites is not None : for site in sites : if not isinstance ( site . _regex , basestring ) : # this is a multisite for index in range ( len ( site . RegEx ) ) : # the regexs will ensure we have the exact number of lookups siteimpprop = site . getImportantProperty ( index ) if target != site . Target : print "\n____________________     Results found for: " + site . Target + "     ____________________" target = site . Target if siteimpprop is None or len ( siteimpprop ) == 0 : print "No results in the " + site . FriendlyName [ index ] + " category" else : if siteimpprop [ index ] is None or len ( siteimpprop [ index ] ) == 0 : print site . ReportStringForResult [ index ] + ' No results found' else : laststring = "" # if it's just a string we don't want it output like a list if isinstance ( siteimpprop [ index ] , basestring ) : if "" + site . ReportStringForResult [ index ] + " " + str ( siteimpprop ) != laststring : print "" + site . ReportStringForResult [ index ] + " " + str ( siteimpprop ) . replace ( 'www.' , 'www[.]' ) . replace ( 'http' , 'hxxp' ) laststring = "" + site . ReportStringForResult [ index ] + " " + str ( siteimpprop ) # must be a list since it failed the isinstance check on string else : laststring = "" for siteresult in siteimpprop [ index ] : if "" + site . ReportStringForResult [ index ] + " " + str ( siteresult ) != laststring : print "" + site . ReportStringForResult [ index ] + " " + str ( siteresult ) . replace ( 'www.' , 'www[.]' ) . replace ( 'http' , 'hxxp' ) laststring = "" + site . ReportStringForResult [ index ] + " " + str ( siteresult ) else : # this is a singlesite siteimpprop = site . getImportantProperty ( 0 ) if target != site . Target : print "\n____________________     Results found for: " + site . Target + "     ____________________" target = site . Target if siteimpprop is None or len ( siteimpprop ) == 0 : print "No results found in the " + site . FriendlyName else : laststring = "" # if it's just a string we don't want it output like a list if isinstance ( siteimpprop , basestring ) : if "" + site . ReportStringForResult + " " + str ( siteimpprop ) != laststring : print "" + site . ReportStringForResult + " " + str ( siteimpprop ) . replace ( 'www.' , 'www[.]' ) . replace ( 'http' , 'hxxp' ) laststring = "" + site . ReportStringForResult + " " + str ( siteimpprop ) # must be a list since it failed the isinstance check on string else : laststring = "" for siteresult in siteimpprop : if "" + site . ReportStringForResult + " " + str ( siteresult ) != laststring : print "" + site . ReportStringForResult + " " + str ( siteresult ) . replace ( 'www.' , 'www[.]' ) . replace ( 'http' , 'hxxp' ) laststring = "" + site . ReportStringForResult + " " + str ( siteresult ) else : pass