Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automating the download on Windows? #27

Open
PhinPhin opened this issue Apr 15, 2017 · 0 comments
Open

automating the download on Windows? #27

PhinPhin opened this issue Apr 15, 2017 · 0 comments

Comments

@PhinPhin
Copy link

PhinPhin commented Apr 15, 2017

Hi,
sorry that I write a bit OffTopic, but it may help others, too.

I want to download only the courses that are of interest for me (Audio/Video and Photoshop) though this is still a long list. Any way to do it automatically? My first try was a Windows Powershell script that looks like this:

for ($var = 1 ; $var -le 500 ; $var++) { write-host "video2brain://course/00$($var.tostring("00"))/download?lang=de" ; start "video2brain://course/0$($var.tostring("00"))/download?lang=de" ; Start-Sleep -s 2 }

Unfortunately this dumb bruteforce-method will give you errors for every video-id that does not exist in the Desktop-App, and this is annoying because it steals window-focus AND you have to click ok to close the window. I'm not even sure if this will give the account a red flag on the long distance. Haven't got any mails from them, yet.

A better attempt would be to get a script that will parse a given website-URL, like:

https://www.video2brain.com/de/photoshop

Oh that site the script should follow every URL that begins with https://www.video2brain.com/de/videotraining/ (eg. https://www.video2brain.com/de/videotraining/nachtfotografie-grundlagen)

On each course-site there is a Download-button that goes to https://www.video2brain.com/de/product-downloads-4720.htm#download_overlay so if the script can copy the video-id out of this link, the 4digit number between product-downloads- and .htm#download_overlay the script finally cann add this number into the video2brain-download link that will trigger the Desktop app:

video2brain://course/video-id/download?lang=de or for the above example it would be
video2brain://course/4720/download?lang=de

That would be my approach, sadly I have no clue about Python or even how to get this done in a Powershell script. The second approach also would it make possible to just download selected topics automatically, even their theme-playlists would work because those directly link to the course-page.

Any smarter ideas? :)

regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant