Code Monkey home page Code Monkey logo

aula-dk-picture-download's People

Contributors

elnigno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

fdro givtrah

aula-dk-picture-download's Issues

Works only with Firefox

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.

Make --tags optional

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.

Display a more useful error message if cookies cannot be found

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 no pictures / albums are found in messages, the program crashes

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

Duplicate filename problem

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.