Linkedin-Learning-Courses-Downloader icon indicating copy to clipboard operation
Linkedin-Learning-Courses-Downloader copied to clipboard

Standard command line interface (CLI)

Open pcpepik opened this issue 3 years ago • 4 comments

Is your feature request related to a problem? Please describe.

  • This would solve #21 and similar issues and also allow for additional automation

Describe the solution you'd like

  • Replace TUI with a standard command line interface ^1

Describe alternatives you've considered

  • TUI could be hidden under --interactive option and/or be the default when no argument is given

Additional context

  • UI mockup:
    user@machine ~ $ llcd --help
    Usage: llcd --token TOKEN [OPTIONS] URL
    Download LinkedIn Learning courses in the video quality you like.
    URL is url of a course.
    
    If no argument is given, app will run in interactive mode by default.
    
      -h, --help        Print this help text and exit
      -t, --token       Linkedin learning security token or a file containing it.
                        It should appear as 'li_at' if you are logged into
                        linkedin learning.
      -o, --output-dir  Where do you want to download your course to? (ex:D:\MyCourses)
                        Default is current directory
      --interactive     Run the app in interactive mode (TUI). Default when
                        no argument is given
      --quality NUMBER  Quality to be downloaded with fallback to lower resolution
                        if not available. Defaults to max. available resolution.
                        Valid options: '1' for 360p, '2' for 540p, '3' for 720p
      --no-subtitles    Do not download subtitle files for videos
      --no-excercises   Do not download excercise files
    
    Exit status:
     0  if OK,
     1  if minor problems (e.g., cannot access subdirectory),
     2  if serious trouble (e.g., cannot access command-line
                  argument).
    
    Made by ahmedayman4a: <https://github.com/Ahmed-Soli/linkedin-course-downloader>
    user@machine ~ $
    user@machine ~ $ llcd -t <token> -o D:\MyCourses --quality 3 --no-subtitles --no-excercises <course-url>
    Extracting Course Data. This might take some time...
    .
    .
    .
    Course downloaded successfully :)
    user@machine ~ $
    

pcpepik avatar Feb 17 '22 12:02 pcpepik

I love it, will look into it.

ahmedayman4a avatar Feb 17 '22 20:02 ahmedayman4a

This would be fantastic. It would be even better if you could add multiple course urls either separated by spaces or, even better, on separate lines in some sort of text/config file.

Also if the delay could be set via the CLI as well, that would be helpful.

nixsee avatar Apr 03 '22 18:04 nixsee

I currently busy but I will start working on it soon

ahmedayman4a avatar Apr 05 '22 21:04 ahmedayman4a

Ahmed .. I don’t have any issue or complaints about the app. To the contrary .. this is just to thank you for such wonderful effort .. am very much grateful.

On Wed, Apr 6, 2022 at 01:05 Ahmed Ayman @.***> wrote:

I currently busy but I will start working on it soon

— Reply to this email directly, view it on GitHub https://github.com/ahmedayman4a/Linkedin-Learning-Courses-Downloader/issues/32#issuecomment-1089347850, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACONDO6YZ3JPKY7UJ6T4X2TVDSTIVANCNFSM5OUPTDIQ . You are receiving this because you are subscribed to this thread.Message ID: <ahmedayman4a/Linkedin-Learning-Courses-Downloader/issues/32/1089347850@ github.com>

-- Moh. Lataifeh

lataifeh avatar Apr 06 '22 01:04 lataifeh