(self, siteelement, webretrievedelay, proxy, targettype,
                         target, useragent, botoutputrequested, verbose)
return Site(domainurl, webretrievedelay, proxy, targettype, reportstringforresult, target,
                    useragent, sitefriendlyname, regex, fullurl, botoutputrequested, importantproperty,
                    params, headers, method.upper(), postdata, verbose)
Utilizes the Class Methods within this Class to build the Site object.
        Returns a Site object that defines results returned during the web
        retrieval investigations.

        Argument(s):
        siteelement -- the siteelement object that will be used as the
        start element.
        webretrievedelay -- the amount of seconds to wait between site retrieve
        calls. Default delay is 2 seconds.
        proxy -- sets a proxy to use in the form of proxy.example.com:8080.
        targettype -- the targettype as defined. Either ip, md5, or hostname.
        target -- the target that will be used to gather information on.
        useragent -- the string utilized to represent the user-agent when
        web requests or submissions are made.
        botoutputrequested -- true or false representing if a minimalized output
        will be required for the site.

        Return value(s):
        Site object.

        Restriction(s):
        This Method is tagged as a Class Method
Utilizes the Class Methods within this Class to build the Site object.
        Returns a Site object that defines results returned during the web
        retrieval investigations.
Utilizes the Class Methods within this Class to build the Site object . Returns a Site object that defines results returned during the web retrieval investigations .
def buildSiteFromXML(self, siteelement, webretrievedelay, proxy, targettype,
                         target, useragent, botoutputrequested, verbose):
        """
        Utilizes the Class Methods within this Class to build the Site object.
        Returns a Site object that defines results returned during the web
        retrieval investigations.

        Argument(s):
        siteelement -- the siteelement object that will be used as the
        start element.
        webretrievedelay -- the amount of seconds to wait between site retrieve
        calls. Default delay is 2 seconds.
        proxy -- sets a proxy to use in the form of proxy.example.com:8080.
        targettype -- the targettype as defined. Either ip, md5, or hostname.
        target -- the target that will be used to gather information on.
        useragent -- the string utilized to represent the user-agent when
        web requests or submissions are made.
        botoutputrequested -- true or false representing if a minimalized output
        will be required for the site.

        Return value(s):
        Site object.

        Restriction(s):
        This Method is tagged as a Class Method
        """
        domainurl = siteelement.find("domainurl").text
        try:
            method = siteelement.find("method").text
            if method.upper() != "GET" and method.upper() != "POST":
                method = "GET"
        except:
            method = "GET"
        postdata = Site.buildDictionaryFromXML(siteelement, "postdata")
        reportstringforresult = Site.buildStringOrListfromXML(siteelement, "reportstringforresult")
        sitefriendlyname = Site.buildStringOrListfromXML(siteelement, "sitefriendlyname")
        regex = Site.buildStringOrListfromXML(siteelement, "regex")
        fullurl = siteelement.find("fullurl").text
        importantproperty = Site.buildStringOrListfromXML(siteelement, "importantproperty")
        params = Site.buildDictionaryFromXML(siteelement, "params")
        headers = Site.buildDictionaryFromXML(siteelement, "headers")

        return Site(domainurl, webretrievedelay, proxy, targettype, reportstringforresult, target,
                    useragent, sitefriendlyname, regex, fullurl, botoutputrequested, importantproperty,
                    params, headers, method.upper(), postdata, verbose)
def buildSiteFromXML ( self , siteelement , webretrievedelay , proxy , targettype , target , useragent , botoutputrequested , verbose ) : domainurl = siteelement . find ( "domainurl" ) . text try : method = siteelement . find ( "method" ) . text if method . upper ( ) != "GET" and method . upper ( ) != "POST" : method = "GET" except : method = "GET" postdata = Site . buildDictionaryFromXML ( siteelement , "postdata" ) reportstringforresult = Site . buildStringOrListfromXML ( siteelement , "reportstringforresult" ) sitefriendlyname = Site . buildStringOrListfromXML ( siteelement , "sitefriendlyname" ) regex = Site . buildStringOrListfromXML ( siteelement , "regex" ) fullurl = siteelement . find ( "fullurl" ) . text importantproperty = Site . buildStringOrListfromXML ( siteelement , "importantproperty" ) params = Site . buildDictionaryFromXML ( siteelement , "params" ) headers = Site . buildDictionaryFromXML ( siteelement , "headers" ) return Site ( domainurl , webretrievedelay , proxy , targettype , reportstringforresult , target , useragent , sitefriendlyname , regex , fullurl , botoutputrequested , importantproperty , params , headers , method . upper ( ) , postdata , verbose )