

def __init__(self, grab=None):
    if (grab is None):
        self.grab = None
    elif isinstance(grab, weakref.ProxyType):
        self.grab = grab
    else:
        self.grab = weakref.proxy(grab)
    self.status = None
    self.code = None
    self.head = None
    self.headers = None
    self.url = None
    self.cookies = CookieManager()
    self.charset = 'utf-8'
    self.bom = None
    self.timestamp = datetime.utcnow()
    self.name_lookup_time = 0
    self.connect_time = 0
    self.total_time = 0
    self.download_size = 0
    self.upload_size = 0
    self.download_speed = 0
    self.error_code = None
    self.error_msg = None
    self.from_cache = False
    self.body_path = None
    self._bytes_body = None
    self._unicode_body = None
    self._lxml_tree = None
    self._strict_lxml_tree = None
    self._pyquery = None
    self._lxml_form = None
    self._file_fields = {
        
    }

dataset/ETHPy150Open lorien/grab/grab/document.py Document.__init__/original