This script is an alternative to the defunct acd_cli project for Linux desktop users who want to download a full archive of their photos and videos saved in Amazon. It works by connecting to Firefox over Marionette and emulating a user clicking and downloading each file individually.
This script has few dependencies:
First, launch Firefox in Marionette mode:
$ firefox -marionette
Within this Firefox window, log in to Amazon Photos. Once you've landed on the page containing your photos, run the script in a separate window:
$ pipenv run python main.py
Note that this will download everything to Firefox's default downloads folder, so be sure to update that first if you want everything to go in a separate directory.