跳到主要内容
哒哒星球DADA PLANET

Skill · 已公开版本

recipe-bulk-download-folder · 批量下载 Google Drive 文件夹

列出指定 Google Drive 文件夹中的全部文件并逐个下载,Google 文档类文件可导出为 PDF。

先看看示例

作者提供的示例,实际效果取决于你的输入和使用工具。

输入

把这个 Drive 文件夹里的所有文件下载到本地,其中 Google 文档统一导出成 PDF。

输出

预期交付:下载到本地的文件,或导出为 PDF 的文档。(编辑说明,非实际运行结果)

方法说明

---
name: recipe-bulk-download-folder
description: "List and download all files from a Google Drive folder."
metadata:
  version: 0.22.5
  openclaw:
    category: "recipe"
    domain: "productivity"
    requires:
      bins:
        - gws
      skills:
        - gws-drive
---

# Bulk Download Drive Folder

> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-drive`

List and download all files from a Google Drive folder.

## Steps

1. List files in folder: `gws drive files list --params '{"q": "'\''FOLDER_ID'\'' in parents"}' --format json`
2. Download each file: `gws drive files get --params '{"fileId": "FILE_ID", "alt": "media"}' -o filename.ext`
3. Export Google Docs as PDF: `gws drive files export --params '{"fileId": "FILE_ID", "mimeType": "application/pdf"}' -o document.pdf`