/saplearninghub-pdf-downloader-gui

Download eBook from SAP Learning Hub using GUI

Primary LanguageTypeScriptMIT LicenseMIT

saplearninghub-pdf-downloader-gui

Download eBook from SAP Learning Hub using GUI

Getting Started

Prerequisites

  • Google Chrome installed

The path of chrome.exe should be put in Chrome path. These are the default paths depending on your os (they are set by default):

  • Windows : C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
  • Linux : /usr/bin/google-chrome

The path of the downloader script (build result of saplearninghub-pdf-downloader) should be put in Downloader path. By default it should be bundled in the archive with the executable file.

Installation

npm install

Usage

Get the eBook URL from the SAP LearningHub and put it on the Ebook link.

The download URL of the eBook URL is on the learning hub:

SAP Learning Hub

Fill the User and Password inputs with your SUSER / SUSER_PASSWORD. Fill the Target folder input with the folder (use absolute path, see known bugs)

Test

You can only test the GUI. The download will only work if you have the build downloader and fill the Downloader path correctly.

npm run debug

Build

To build the node script in the dist folder

npm run build

Then build the webpacked file with @nodegui/packer

npx nodegui-packer --init saplearninghub-pdf-downloader-gui
npx nodegui-packer --pack dist

Build With

  • nodegui - A library for building cross-platform native desktop applications with Node.js and CSS
  • nodegui-packer - Package and deploy apps built with NodeGui to all platforms
  • webpack - A bundler for javascript and friends.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. If you like the project, you can buy me a coffee.

Knwon bugs

  • All file paths should be absolute path (relative paths don't work).
  • Connection issues should be open in the main repo

Side notes

What I couldn't achieve:

  • Bundle the saplearninghub-pdf-downloader into the executable file (maybe due to webpack and/or packer ?). The goal was to start a node child process but it looks like it needs another file.

License

MIT