Skip to content

Instantly share code, notes, and snippets.

@meub
Last active February 5, 2024 15:19
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save meub/767da97925d413f57f55c42ef4325d90 to your computer and use it in GitHub Desktop.
This is a simple script to bulk download all the photos from an Aura digital picture frame (auraframes.com). Aura provides no easy way to bulk download photos off of frames so I created this for use with Python 3.
# I created a repo for this project here: https://github.com/meub/aura-frame-downloader
@shermanpark
Copy link

Hello,

I had to install the "requests" module after installing Python3 on Windows.

Also, I added the line: elif item["file_name"].endswith(".jpg"):
new_filename = new_filename + ".jpg"
to the script as some files were jpg

@doc10101
Copy link

Thanks! How do you install the requests module?

@shermanpark
Copy link

shermanpark commented Jan 17, 2023 via email

@meub
Copy link
Author

meub commented Jan 18, 2023

New repo for this project here: https://github.com/meub/aura-frame-downloader

@doc10101
Copy link

This is great; downloading now! The key to getting this to work was to use the command:

"python3" rather than "python" in terminal, and drag the python script from the finder window into terminal so the script could execute from the path where I had it on my system.

So my actual command line in terminal (on a Mac) was as follows:

python3 /Users/rich/Downloads/aura-frame-downloader-main/download-aura-photos.py

Thank you for creating this excellent tool!

@bourgLind
Copy link

It's been a while since I have done any kind of programming, and I'm not familiar with Python. I'm getting the following error:

= RESTART: C:\Users\ljlod\AppData\Local\Programs\Python\Python311\Scripts\download-aura-photos.py
Login Success
Traceback (most recent call last):
File "C:\Users\ljlod\AppData\Local\Programs\Python\Python311\Scripts\download-aura-photos.py", line 101, in
total = download_photos_from_aura( email, password, frame_id)
File "C:\Users\ljlod\AppData\Local\Programs\Python\Python311\Scripts\download-aura-photos.py", line 58, in download_photos_from_aura
for item in json_data["assets"]:
KeyError: 'assets'

Any suggestions would be helpful,
Thanks

@meub
Copy link
Author

meub commented Jan 18, 2023

Did you change the limit parameter to a value other than 1000? It needs to be set to 1000 or else the API will return an error

@bourgLind
Copy link

No, the limit is still 1000 as seen below:

frame_url = "https://api.pushd.com/v5/frames/" + frame_id + "/assets.json?limit=1000&side_load_users=false"

@doc10101
Copy link

As noted by another user, while the script worked, it only downloaded 1000 pictures; I have over 2000 on the frame. Is there any way to change the limiter?

@meub
Copy link
Author

meub commented Jan 18, 2023

I don't have a frame with that many photos so I can't really test this. Also, the API fails if I just increase the limit over 1000 so I'll have to investigate this further. Could you open an issue on this repo please and continue the discussion there? https://github.com/meub/aura-frame-downloader

@fredrossperry
Copy link

This is great! Thank you.

@dimitrigarder
Copy link

Nice job. Do you know the API verb to upload images? Is the Aura API documented somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment