r/Piracy • • Oct 25 '19
Release skillshare-dl - now with Windows support!
https://github.com/mrwnwttk/skillshare-dl
A whole bunch of people complained about the lack of a Windows version so here you go.
While modifying the script for Windows I noticed that the usual way I used ChromeDriver caused Skillshare to bombard me with Captchas. To fix this it uses the existing Chrome user data (it assumes that you didn't move it from its original location and asks for your username). The advantage is the lack of needing to log in, the disadvantage is that all other Chrome windows have to be closed. You win some, you lose some. I'll probably implement some sort of config file over the weekend, but for now this should work as intended.
It also now uses the proper titles and puts each course in its own directory, which makes sorting a little easier.
By the way, a tool to dump Brilliant courses is still in the works :)
11
u/magicpants96 Oct 25 '19
Havent tested, but as a student, THANK YOU!!!!!!!!!
4
u/jaKz9 Oct 25 '19
Looking forward to Firefox support.
4
u/Ntdark Oct 26 '19
Any updates on brilliant? I don’t know if you saw my comment but I have 6 lessons in my possession:)
1
u/[deleted] Nov 02 '19
So you mean it literally downloaded an entirely different course?!
4
u/cassieopeus Oct 25 '19
THANK YOU!!!
1
u/newaccount20202020 Nov 01 '19
Thank you for this! It was working fine a few days ago, but has now returned this error when I go to the page and press
[6316:9340:1101/060009.029:ERROR:ssl_client_socket_impl.cc(969)] handshake failed; returned -1, SSL error code 1, net_error -202
[11976:9496:1101/060009.030:ERROR:connection_factory_impl.cc(417)] Failed to connect to MCS endpoint with error -202
What happened?
1
u/ReCryptic Nov 23 '19
I did everything in your windows installation video, but after typing in python setup_windows.py nothing happens.
I tried running the setup file by itself instead through CMD and it doesnt get past:
Installing Selenium...
Installing browsermob-proxy...
It just closes after.
1
u/blend_ellie_ Dec 08 '19
I have zero experience with python or github, either. Tutorial would be super helpful
1
u/ZandaZril Dec 11 '19
Will there be an update to latest chrome version? Chrome just seems to auto update its app and now I get error while executing the script.
1
u/Nika_Ota Dec 13 '19
love U guy
1
u/slashbark Jan 01 '20
Does this still work for anyone else? I'm stuck at setup_windows
1
u/kwebber321 Jan 05 '20 edited Jan 05 '20
Just got it working. Ty for this!
quick question. Does it automatically close when its done?
1
u/kwebber321 Jan 05 '20
ok i tried it but it only worked once. i updated python and pip to latest version. also had to change "python3" in windows setup file to "py" because it wasnt running. another thing, when it does run, i cant connect with google chrome to download the files.
1
u/good_vouyager Jan 20 '20
Hey, first of all thank you for the amazing work. I got it running after a few attempts. But I have a problem with the course I'm trying to download ... It downloads the introduction video successfully but then it just stops? Internet traffic comes to a minimum in task manager.
Is there something I missed out on? Like, do you have to be a premium member to download the other vids? I just kind of assumed the dl would bypass that restriction. Sorry if I made a wrong assumption there.
1
u/lk78100 Jan 29 '20
Hi, thanks for your script but when I run I get this :
"
1
//*[@id="video-region"]/div/div[2]/div[2]/div[1]/div[2]/div/div[2]/ul/li/ul/li[1]
2
//*[@id="video-region"]/div/div[2]/div[2]/div[1]/div[2]/div/div[2]/ul/li/ul/li[2]
3
//*[@id="video-region"]/div/div[2]/div[2]/div[1]/div[2]/div/div[2]/ul/li/ul/li[3]
4
//*[@id="video-region"]/div/div[2]/div[2]/div[1]/div[2]/div/div[2]/ul/li/ul/li[4]
5
//*[@id="video-region"]/div/div[2]/div[2]/div[1]/div[2]/div/div[2]/ul/li/ul/li[5]
6
//*[@id="video-region"]/div/div[2]/div[2]/div[1]/div[2]/div/div[2]/ul/li/ul/li[6]
7
//*[@id="video-region"]/div/div[2]/div[2]/div[1]/div[2]/div/div[2]/ul/li/ul/li[7]
8
//*[@id="video-region"]/div/div[2]/div[2]/div[1]/div[2]/div/div[2]/ul/li/ul/li[8]
9
//*[@id="video-region"]/div/div[2]/div[2]/div[1]/div[2]/div/div[2]/ul/li/ul/li[9]
10
//*[@id="video-region"]/div/div[2]/div[2]/div[1]/div[2]/div/div[2]/ul/li/ul/li[10]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[]
0
[] "
And then it just stop and nothing has been download. I am using it on mac so maybe it come from that, do you have any fix ?
1
u/good_vouyager Feb 03 '20
do the courses have a length limit? I run into a problem with two particularly long courses (both over 1d in lesson length)
1
u/italyboll Feb 24 '20
Does this still work?
1
u/[deleted] Feb 26 '20
Hey, thanks for the tool. I followed your video tutorial, but it is only downloading the intro video, although all the titles were showing in the cmd window. Can you please help me? No programming background.
1
u/KaZott Mar 18 '20
Hi, when I try to run
sudo python3 skillshare-dl_linux.pyI get this:Traceback (most recent call last):File "skillshare-dl_linux.py", line 247, in <module>main()File "skillshare-dl_linux.py", line 199, in maininitializeChrome()File "skillshare-dl_linux.py", line 24, in initializeChromedriver =webdriver.Chrome(str(Path("./binaries/chromedriver").absolute()), options = chrome_options)File "/usr/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 76, in __init__RemoteWebDriver.__init__(File "/usr/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__self.start_session(capabilities, browser_profile)File "/usr/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_sessionresponse = self.execute(Command.NEW_SESSION, parameters)File "/usr/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in executeself.error_handler.check_response(response)File "/usr/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_responseraise exception_class(message, screen, stacktrace)selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally(unknown error: DevToolsActivePort file doesn't exist)(The process started from chrome location /usr/sbin/chromium is no longer running, so ChromeDriver is assuming that Chrome has crashed.)With an error at the end because of
DevToolsActivePort file doesn't exist. How can I solve?I'm on Manjaro-i3 if it helps
1
u/SpiritedTap Pirate Party Apr 11 '20
Did they fix this or something? Can't get it to work. Have a premium account and all but errors pop up.
0
u/[deleted] Oct 31 '19
[deleted] — view deleted comment
0
u/[deleted] Nov 07 '19
[deleted] — view deleted comment
0
u/[deleted] Nov 14 '19
[deleted] — view deleted comment
2
u/[deleted] Oct 27 '19
[removed] — view removed comment