lorenzodifuccia / safaribooks

Download and generate EPUB of your favorite books from O'Reilly Learning (aka Safari Books Online) library.
Do What The F*ck You Want To Public License
4.6k stars 683 forks source link

Media downloader, a GUI front end for safaribooks #260

Open mhogomchungu opened 3 years ago

mhogomchungu commented 3 years ago

Greetings,

I have a project named "media downloader"[1] it now supports safaribooks.

[1] https://github.com/mhogomchungu/media-downloader

ps: I had to fork because:-

  1. I wanted "--destination" option to control where media should be downloaded to.
  2. I wanted "--version" option to print a version string.
  3. I wanted a release to point to when auto downloading.

Image 1:

Screenshot_20210307_114041

Image 2: Screenshot_20210307_114231

rufanov commented 3 years ago

This is issue, so... what problem do you have?

elmobotix commented 3 years ago

Hi

Support for Safaribooks is a little confusing. The website is now called OReilly and your support for Safaribooks suugests the program can download "books" from the OReilly site.

On Sun, 7 Mar 2021 at 08:58, mhogomchungu notifications@github.com wrote:

Greetings,

I have a project named "media downloader"[1] and the git version now supports safaribooks and the next version with official support will be released on April 1st,2021.

[1] https://github.com/mhogomchungu/media-downloader

If you are on linux, you can try it now by building from git and do the following.

  1. Start media downloader and then click the configure tab.
  2. Click "Add a plugin" button and enter a path to file named safaribooks.json with below contents after first replacing XXXXX and YYYYYY with your user name and password respectively.
  3. If you do not want to save the user name and password in the config file, then you will have to enter them in the enter options field in the main window before you start downloading.
  4. When done, restart the app and the entry for safaribooks will show up as seen in below image 2 and media downloader will automatically download safaribooks from my fork.

ps: I had to fork because:-

  1. I wanted "--destination" option to control where media should be downloaded to.
  2. I wanted "--version" option to print a version string.
  3. I wanted a release to point to when auto downloading.

{ "BackendPath": "${BackendPath}", "BatchFileArgument": "", "CanDownloadPlaylist": false, "CommandName": "safaribooks.py", "CommandNames": [ "python3", "-u", "${BackendPath}/safaribooks.py" ], "DefaultDownLoadCmdOptions": [ "--no-cookies" ], "DefaultListCmdOptions": [], "DownloadUrl": "https://api.github.com/repos/mhogomchungu/safaribooks/releases/latest", "LikeYoutubeDl":false, "Name": "safaribooks", "UserName": "XXXXX", "Password": "YYYYYY", "OptionsArgument": "", "UsePrivateExecutable": true, "VersionArgument": "--version", "VersionStringLine": 0, "VersionStringPosition": 0 }

Image 1:

[image: Screenshot_20210307_114041] https://user-images.githubusercontent.com/3496115/110234391-45749b80-7f3b-11eb-8d03-6de54818f62d.png

Image 2: [image: Screenshot_20210307_114231] https://user-images.githubusercontent.com/3496115/110234393-486f8c00-7f3b-11eb-8d01-f15b45036fa9.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lorenzodifuccia/safaribooks/issues/260, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASXX2MQE54U6VUIIXP3G37TTCM54RANCNFSM4YXURQZQ .

mhogomchungu commented 3 years ago

This is issue, so... what problem do you have?

I have no problem and the point of this post is to inform this community of my GUI tool for those who want to use safaribooks with a GUI.

mhogomchungu commented 3 years ago

Hi Support for Safaribooks is a little confusing. The website is now called OReilly and your support for Safaribooks suugests the program can download "books" from the OReilly site.

My view is simple, i have a GUI tool named "media downloader" and its purpose is to download online media and it supports a CLI tool named "safaribooks" that does the actual downloading. Where "safaribooks" gets its media is beyond my concern.

elmobotix commented 3 years ago

Fair!

mhogomchungu commented 3 years ago

Version 1.2.0 of media downloader is released and safaribooks extension is now officially supported and can be downloaded from here: https://github.com/mhogomchungu/media-downloader/wiki/Extensions

Bhuvan988 commented 2 years ago

[-] Logging into Safari Books Online...

[#] HTTPSConnectionPool(host='learning.oreilly.com', port=443): Max retries exceeded with url: /login/unified/?next=/home/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))

[#] Login: unable to reach Safari Books Online. Try again...

[!] Aborting...

mhogomchungu commented 2 years ago

@Bhuvan988

Try to use safaribooks from this repository and check if it works as expected. I suspect the problem is local and has nothing to do with Media Downloader.

Bhuvan988 commented 2 years ago

I am urgently need of https://www.oreilly.com/library/view/six-sigma-for/9788131731543/ Can someone help me get it. I am unable to download it .