(self, site)
Class constructor. Assigns a site from the parameter into the _site
        instance variable. This is a play on the decorator pattern. Also
        assigns the postbydefault parameter to the _postByDefault instance
        variable to determine if the Automater should post information
        to a site. By default Automater will NOT post information.

        Argument(s):
        site -- the site that we will decorate.
        postbydefault -- a Boolean representing whether a post will occur.

        Return value(s):
        Nothing is returned from this Method.
Class constructor. Assigns a site from the parameter into the _site
        instance variable. This is a play on the decorator pattern. Also
        assigns the postbydefault parameter to the _postByDefault instance
        variable to determine if the Automater should post information
        to a site. By default Automater will NOT post information.
Class constructor . Assigns a site from the parameter into the _site instance variable . This is a play on the decorator pattern . Also assigns the postbydefault parameter to the _postByDefault instance variable to determine if the Automater should post information to a site . By default Automater will NOT post information .
def __init__(self, site):
        """
        Class constructor. Assigns a site from the parameter into the _site
        instance variable. This is a play on the decorator pattern. Also
        assigns the postbydefault parameter to the _postByDefault instance
        variable to determine if the Automater should post information
        to a site. By default Automater will NOT post information.

        Argument(s):
        site -- the site that we will decorate.
        postbydefault -- a Boolean representing whether a post will occur.

        Return value(s):
        Nothing is returned from this Method.
        """
        self._site = site
        super(MethodPostSite, self).__init__(self._site.URL, self._site.WebRetrieveDelay,
                                             self._site.Proxy, self._site.TargetType,
                                             self._site.ReportStringForResult,
                                             self._site.Target, self._site.UserAgent,
                                             self._site.FriendlyName,
                                             self._site.RegEx, self._site.FullURL,
                                             self._site.BotOutputRequested,
                                             self._site.ImportantPropertyString,
                                             self._site.Params, self._site.Headers,
                                             self._site.Method, self._site.PostData, site._verbose)
        self.postMessage(self.UserMessage + " " + self.FullURL)
        SiteDetailOutput.PrintStandardOutput('[-] {url} requires a submission for {target}. '
                                             'Submitting now, this may take a moment.'.
                                             format(url=self._site.URL, target=self._site.Target),
                                             verbose=site._verbose)
        content = self.submitPost()
        if content:
            if not isinstance(self.FriendlyName, basestring):  # this is a multi instance
                self._results = [[] for x in xrange(len(self.RegEx))]
                for index in range(len(self.RegEx)):
                    self.addMultiResults(self.getContentList(content, index), index)
            else:  # this is a single instance
                self.addResults(self.getContentList(content))
def __init__ ( self , site ) : self . _site = site super ( MethodPostSite , self ) . __init__ ( self . _site . URL , self . _site . WebRetrieveDelay , self . _site . Proxy , self . _site . TargetType , self . _site . ReportStringForResult , self . _site . Target , self . _site . UserAgent , self . _site . FriendlyName , self . _site . RegEx , self . _site . FullURL , self . _site . BotOutputRequested , self . _site . ImportantPropertyString , self . _site . Params , self . _site . Headers , self . _site . Method , self . _site . PostData , site . _verbose ) self . postMessage ( self . UserMessage + " " + self . FullURL ) SiteDetailOutput . PrintStandardOutput ( '[-] {url} requires a submission for {target}. ' 'Submitting now, this may take a moment.' . format ( url = self . _site . URL , target = self . _site . Target ) , verbose = site . _verbose ) content = self . submitPost ( ) if content : if not isinstance ( self . FriendlyName , basestring ) : # this is a multi instance self . _results = [ [ ] for x in xrange ( len ( self . RegEx ) ) ] for index in range ( len ( self . RegEx ) ) : self . addMultiResults ( self . getContentList ( content , index ) , index ) else : # this is a single instance self . addResults ( self . getContentList ( content ) )