iCloud怎么批量下载照片,命令使用方法?

iCloud怎么批量下载照片,命令使用方法?

曾经想使用命令行从 iCloud 照片下载所有照片吗?感谢第三方 icloud_photos_downloader 工具,您可以做到这一点。简称 icloudpd,它可以使用 Mac、Windows PC 或 Linux 上的命令行直接从 iCloud 访问和下载照片。

icloudpd 是开源的,有兴趣的可以查看github上的源码项目。

因为 icloud_photos_downloader 是一个 Python 工具,所以如果您尚未安装 Python 3.x或在 Mac 上安装 Homebrew,则需要安装 Homebrew。我们将假设您在 Mac 上使用 Homebrew,但如果您使用的是其他东西,那么请使用适当的安装方法。

首先,如果您还没有在 Mac 上安装 python,则需要先安装。如果之前已经安装过python,可以跳过这一步。

brew install python

python 安装完成后,您可以使用以下命令通过 pip 安装 icloud_photos_downloader 包:

pip install icloudpd

完成安装 icloudpd 后,您就可以开始了。

如何通过命令行下载所有 iCloud 照片

安装 icloudpd 后,您就可以使用 iCloud API 直接从 iCloud 照片下载照片了。

您需要指定将照片下载到的目录,并包括您的 Apple ID 和密码,如下所示:

icloudpd --directory ~/iCloudPhotoBackup \
--username appleID@example.com \
--password examplepassword123 \

这会将所有照片从 iCloud 照片下载到目标目录。

确保您有足够的可用磁盘空间来完成下载,并确保您也有可用的带宽。很多照片可能需要很长时间才能下载,所以如果你有一个包含 100,000 多张图片的库,占用了 350GB 的存储空间,请耐心等待,让整个事情完成。

完成后,您需要查看下载所有内容的目录,以便了解

还有其他方法可以从 iCloud 下载所有照片,包括通过 Mac 关闭 iCloud 照片功能从 iCloud 下载所有照片,使用 iCloud.com 网站执行类似的操作将它们从 iCloud 下载到 iPhone 或 iPad下载功能(不幸的是,一次限制为 1000 张照片,这对于拥有大型照片库的用户来说是不切实际的),或者在 Mac 上的照片中使用 iCloud 照片的“下载原件”设置(再次确保您有足够的磁盘空间实现这一点),或者您甚至可以使用 Apple 的GDPR 数据请求工具来请求 Apple 向您提供的所有内容的副本——包括 iCloud 照片。

对于它的价值,icloudpd 还有许多其他选项和标志可用于有选择地从 iCloud 照片下载图片。如果您运行 icloudpd –help 您将看到以下选项:

Usage: icloudpd.py options

Download all iCloud photos to a local directory

Options:
-d, --directory directory Local directory that should be used for
download
-u, --username username Your iCloud username or email address
-p, --password password Your iCloud password (default: use PyiCloud
keyring or prompt for password)
--cookie-directory /cookie/directory
Directory to store cookies for
authentication (default: ~/.pyicloud)
--size [original|medium|thumb] Image size to download (default: original)
--live-photo-size [original|medium|thumb]
Live Photo video size to download (default:
original)
--recent INTEGER RANGE Number of recent photos to download
(default: download all photos)
--until-found INTEGER RANGE Download most recently added photos until we
find x number of previously downloaded
consecutive photos (default: download all
photos)
-a, --album album Album to download (default: All Photos)
-l, --list-albums Lists the avaliable albums
--skip-videos Don't download any videos (default: Download
all photos and videos)
--skip-live-photos Don't download any live photos (default:
Download live photos)
--force-size Only download the requested size (default:
download original if size is not available)
--auto-delete Scans the "Recently Deleted" folder and
deletes any files found in there. (If you
restore the photo in iCloud, it will be
downloaded again.)
--only-print-filenames Only prints the filenames of all files that
will be downloaded (not including files that
are already downloaded.)(Does not download
or delete any files.)
--folder-structure folder_structure
Folder structure (default: {:%Y/%m/%d})
--set-exif-datetime Write the DateTimeOriginal exif tag from
file creation date, if it doesn't exist.
--smtp-username smtp_username
Your SMTP username, for sending email
notifications when two-step authentication
expires.
--smtp-password smtp_password
Your SMTP password, for sending email
notifications when two-step authentication
expires.
--smtp-host smtp_host Your SMTP server host. Defaults to:
smtp.gmail.com
--smtp-port smtp_port Your SMTP server port. Default: 587 (Gmail)
--smtp-no-tls Pass this flag to disable TLS for SMTP (TLS
is required for Gmail)
--notification-email notification_email
Email address where you would like to
receive email notifications. Default: SMTP
username
--notification-script PATH Runs an external script when two factor
authentication expires. (path required:
/path/to/my/script.sh)
--log-level [debug|info|error] Log level (default: debug)
--no-progress-bar Disables the one-line progress bar and
prints log messages on separate lines
(Progress bar is disabled by default if
there is no tty attached)
--threads-num INTEGER RANGE Number of cpu threads (default: 1)
--version Show the version and exit.
-h, --help Show this message and exit.

正如您所看到的,有很多可自定义的选项,可能超出了大多数用户的需求,他们只是想将所有照片从 iCloud 下载到本地设备或存储以进行备份、存档或其他任何目的。

您是否使用 icloud_photos_downloader 从 iCloud 照片下载所有图片?您是否使用了其他解决方案?你下载的库有多大?在评论中让我们知道您的经历和想法。

本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。
(0)
上一篇 2022年9月20日 下午2:52
下一篇 2022年9月20日 下午7:58

相关推荐