r0oth3x49 / udemy-dl

A cross-platform python based utility to download courses from udemy for personal offline use.
MIT License
4.86k stars 1.2k forks source link

Unable to extract login-form #177

Closed ipkpjersi closed 6 years ago

ipkpjersi commented 6 years ago

Whenever I try to download a course, I get:

[-] Unable to extract login-form form

r0oth3x49 commented 6 years ago

i cannot reproduce for me it is working fine. capture

ochrstn commented 6 years ago

I had the same error but a few minutes later it was working again without changing anything.

ipkpjersi commented 6 years ago

I am not sure what is happening but I am definitely getting this issue. It seems I keep getting captcha after downloading like one course, I am not sure if my account is permanently flagged but udemy-dl is essentially useless to me as I literally cannot use it anymore. I went to an empty directory, with a VPN with an IP I don't normally use on this account, downloaded one course and got connection reset by peer error 104 before it finished downloading, so I tried to start the download again but I got the [-] Unable to extract login-form form again.

Can you possibly set a delay or something between downloading episodes?

edit: I think it's an IP banning mechanism, I fully disconnected from my VPN, connected back again and then I was able to start downloading again.

seanwhe commented 6 years ago

Yip definitely something amiss all I get is

[-] Unable to extract login-form form

After I leave the attempt for some time I am able to download again

r0oth3x49 commented 6 years ago

@ipkpjersi as this is working for you now and i can't reproduce the error so i 'm going to close the issue now.

ipkpjersi commented 6 years ago

@r0oth3x49

I mean, it's not quite solved. Having proxy support and support for a delay between downloading episodes would go a long way against their new anti-downloading measures.

I have implemented a 20 second delay with the "sleep" command on Linux between downloading courses and it has helped until it started happening again, so then I waited a couple hours and increased it to a 60 second delay between downloading courses. Hopefully I do not need to increase the delay between downloading courses any more, but luckily this is still better than downloading from Pluralsight where you have to have a 15 minute delay between downloading episodes and between downloading courses and it ends up taking months to download a good amount of courses.

These websites and companies need to realize that if we want to download things, we are going to make it happen and they cannot stop us.