【发布时间】:2021-10-06 00:32:36
【问题描述】:
我想通过编写图像链接将图像从网络下载到驱动器文件夹。 例如,我想使用 google 应用脚本自动下载位于驱动器文件夹中的图像。
https://i.imgur.com/QCFXhpg.jpg
这就像一种网络抓取,我在文件夹中获取所述网络的图像。
function myFunction() {
var destination_id = '1cgzNUb88ZHXSQ7iZ0zYigH1f7KD_7geH' //// Id of the folder in which we are going to store the image
var img = ...;
var destination = DriveApp.getFolderById(destination_id)
destination.createFile(img)
}
【问题讨论】:
标签: google-apps-script web-scraping