code: def clone(self, **kwargs):
          
  
          grab = Grab(transport=self.transport_param)
          grab.config = self.dump_config()
  
          grab.doc = self.doc.copy()
          #grab.doc.grab = weakref.proxy(grab)
  
          for key in self.clonable_attributes:
              setattr(grab, key, getattr(self, key))
          grab.cookies = deepcopy(self.cookies)
  
          if kwargs:
              grab.setup(**kwargs)
  
          return grab
docs: Create clone of Grab instance.
  
          Cloned instance will have the same state: cookies, referrer, response
          document data
  
          :param **kwargs: overrides settings of cloned grab instance