def export(self, entry_or_id_or_url, file_path, gid=None, extra_params=None):
        ext = googlecl.get_extension_from_path(file_path)
        if ext:
            if extra_params is None:
                extra_params = {}
            # Fix issue with new-style docs always downloading to PDF
            # (gdata-issues Issue 2157)
            extra_params['format'] = ext
        self.Download(entry_or_id_or_url, file_path, ext, gid, extra_params)
Export old and new version docs.
dataset/ETHPy150Open vinitkumar/googlecl/src/googlecl/docs/service.py/DocsServiceCL.export