elnigno / aula-dk-picture-download Goto Github PK
View Code? Open in Web Editor NEWA python script to download pictures from aula.dk
License: GNU General Public License v3.0
A python script to download pictures from aula.dk
License: GNU General Public License v3.0
The script right now only works with Firefox because of this line:
aulaCookies = browser_cookie3.firefox(domain_name='aula.dk')
It could be replaced with
aulaCookies = browser_cookie3.load(domain_name='aula.dk')
to support other browsers, but there are problems if you are (or have been) logged into aula.dk in multiple browsers.
Right now tags are a required parameter, but they don't need to be.
If there are no tags, all pictures in an album/post/thread should be downloaded.
If cookies from aula.dk cannot be retrieved (e.g. browsing with private mode in Edge), I get this not very clear error message:
Traceback (most recent call last):
File "...\aula-dk-picture-download\aula_download_albums_with_tags.py", line 143, in <module>
profiles = client.getProfiles()
File "...\aula-dk-picture-download\aulaclient.py", line 19, in getProfiles
return response_profile['data']['profiles']
TypeError: 'NoneType' object is not subscriptable
There should be a clearer message explaining what is the issue.
If possible consider albums by last modification date instead of creation date.
API v17 does not work anymore, must upgrade to v18.
Traceback (most recent call last):
File "x", line 182, in
albumsToDownload += getAlbumsToDownloadFromMessages()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "x", line 107, in getAlbumsToDownloadFromMessages
messages = messagesResponse['messages']
~~~~~~~~~~~~~~~~^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
Title
It happens very rarely that a file already exists when writing images / videos.
This happens most often with video files shot on the same day.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.