(self)
Attempts to retrieve a string from a web site. String retrieved is
        the entire web site including HTML markup. Requests via proxy if
        --proxy option was chosen during execution of the Automater.
        Returns the string representing the entire web site including the
        HTML markup retrieved from the site.

        Argument(s):
        No arguments are required.

        Return value(s):
        string.

        Restriction(s):
        The Method has no restrictions.
Attempts to retrieve a string from a web site. String retrieved is
        the entire web site including HTML markup. Requests via proxy if
        --proxy option was chosen during execution of the Automater.
        Returns the string representing the entire web site including the
        HTML markup retrieved from the site.
Attempts to retrieve a string from a web site . String retrieved is the entire web site including HTML markup . Requests via proxy if -- proxy option was chosen during execution of the Automater . Returns the string representing the entire web site including the HTML markup retrieved from the site .
def getWebScrape(self):
        """
        Attempts to retrieve a string from a web site. String retrieved is
        the entire web site including HTML markup. Requests via proxy if
        --proxy option was chosen during execution of the Automater.
        Returns the string representing the entire web site including the
        HTML markup retrieved from the site.

        Argument(s):
        No arguments are required.

        Return value(s):
        string.

        Restriction(s):
        The Method has no restrictions.
        """
        delay = self.WebRetrieveDelay
        headers, params, proxy = self.getHeaderParamProxyInfo()
        try:
            time.sleep(delay)
            resp = requests.get(self.FullURL, headers=headers, params=params, proxies=proxy, verify=False, timeout=5)
            return str(resp.content)
        except ConnectionError as ce:
            try:
                self.postErrorMessage('[-] Cannot connect to {url}. Server response is {resp} Server error code is {code}'.
                                      format(url=self.FullURL, resp=ce.message[0], code=ce.message[1][0]))
            except:
                self.postErrorMessage('[-] Cannot connect to ' + self.FullURL)
        except:
            self.postErrorMessage('[-] Cannot connect to ' + self.FullURL)
def getWebScrape ( self ) : delay = self . WebRetrieveDelay headers , params , proxy = self . getHeaderParamProxyInfo ( ) try : time . sleep ( delay ) resp = requests . get ( self . FullURL , headers = headers , params = params , proxies = proxy , verify = False , timeout = 5 ) return str ( resp . content ) except ConnectionError as ce : try : self . postErrorMessage ( '[-] Cannot connect to {url}. Server response is {resp} Server error code is {code}' . format ( url = self . FullURL , resp = ce . message [ 0 ] , code = ce . message [ 1 ] [ 0 ] ) ) except : self . postErrorMessage ( '[-] Cannot connect to ' + self . FullURL ) except : self . postErrorMessage ( '[-] Cannot connect to ' + self . FullURL )