-
-
Save meub/767da97925d413f57f55c42ef4325d90 to your computer and use it in GitHub Desktop.
# I created a repo for this project here: https://github.com/meub/aura-frame-downloader |
Thanks @kjb, I updated the gist with these changes.
Hello, the script is great, but will only download the first 1000 pics.
Can you explain how to run this? When I installed Python 3 and ran the module, I get the error ModuleNotFoundError: No module named 'requests'
Thanks!
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
Thanks! How do you install the requests module?
New repo for this project here: https://github.com/meub/aura-frame-downloader
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!
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
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
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"
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?
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
This is great! Thank you.
Nice job. Do you know the API verb to upload images? Is the Aura API documented somewhere?
Thank you for taking the time to develop this utility. I'm sure there are many like me who are disappointed that Aura does not make downloading of photos easier.
I am able to login to my Aura account successfully (see below) but then encounter a series of errors that I don't understand. Hoping you can provide some insight.
Thanks!!
Login Success
Traceback (most recent call last):
File "C:\Users\bill\Downloads\download-aura-photos.py", line 116, in
total = download_photos_from_aura(email, password, frame_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bill\Downloads\download-aura-photos.py", line 53, in download_photos_from_aura
json_data = json.loads(r.text)
^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64__qbz5n2kfra8p0\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64__qbz5n2kfra8p0\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64__qbz5n2kfra8p0\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Pull request: https://gist.github.com/kjb/9c792f90a923b87978bf4e90cd2f6556/revisions to create the images/ folder if needed.