def __init__(self, document_body=None,
                 transport=None, **kwargs):
        """
        Create Grab instance
        """

        self.meta = {}
        self._doc = None
        self.config = default_config()
        self.config['common_headers'] = self.common_headers()
        self.cookies = CookieManager()
        self.proxylist = ProxyList()
        self.exception = None

        # makes pylint happy
        self.request_counter = None
        self.request_head = None
        self.request_body = None
        self.request_method = None
        self.transport_param = transport
        self.transport = None

        self.reset()
        if kwargs:
            self.setup(**kwargs)
        if document_body is not None:
            self.setup_document(document_body)
def __init__ ( self , document_body = None , transport = None , ** kwargs ) : self . meta = { } self . _doc = None self . config = default_config ( ) self . config [ 'common_headers' ] = self . common_headers ( ) self . cookies = CookieManager ( ) self . proxylist = ProxyList ( ) self . exception = None self . request_counter = None self . request_head = None self . request_body = None self . request_method = None self . transport_param = transport self . transport = None self . reset ( ) if kwargs : self . setup ( ** kwargs ) if document_body is not None : self . setup_document ( document_body )
Create Grab instance