ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.34k stars 9.95k forks source link

[eclassesbyravindra] Site support request #9735

Open cpmydream opened 8 years ago

cpmydream commented 8 years ago

C:\chirag\Videos\Gate Ravi Lectures\CN Problems>youtube-dl.exe http://eclassesby ravindra.com/enrol/index.php?id=24/ [generic] index: Requesting header [redirect] Following redirect to http://eclassesbyravindra.com/login/index.php [generic] index: Requesting header WARNING: Falling back on generic information extractor. [generic] index: Downloading webpage [generic] index: Extracting information ERROR: Unsupported URL: http://eclassesbyravindra.com/login/index.php

It gets redirect to another mostly previous url in normal browsing and does not download the videos.

yan12125 commented 8 years ago

This video requires logging in.

cpmydream commented 8 years ago

I have the credentials but still not able to download

yan12125 commented 8 years ago

Try --cookies.

cpmydream commented 8 years ago

This is with url username and password

C:\chirag\Videos\Gate Ravi Lectures\CN Problems>youtube-dl.exe -u \ -p *** http://eclassesbyravindra.com/mod/page/view.php?id=1556 [generic] view: Requesting header [redirect] Following redirect to http://eclassesbyravindra.com/enrol/index.php?i d=20 [generic] index: Requesting header WARNING: Falling back on generic information extractor. [generic] index: Downloading webpage [generic] index: Extracting information ERROR: Unsupported URL: http://eclassesbyravindra.com/enrol/index.php?id=20

cpmydream commented 8 years ago

it goes to login page ,but i dont know how to get logged in. How to use --cookies???

yan12125 commented 8 years ago

This website is not supported yet.

How to use --cookies???

See: https://github.com/rg3/youtube-dl#how-do-i-pass-cookies-to-youtube-dl

cpmydream commented 8 years ago

http://eclassesbyravindra.com/mod/page/view.php?id=267

Try this url it works, It can be accessed by guest login and it does get downloaded.. This website use vimeo as player..

yan12125 commented 8 years ago

http://eclassesbyravindra.com/mod/page/view.php?id=267 can be viewed without an account while http://eclassesbyravindra.com/enrol/index.php?id=24/ not. For the latter case, I guess with --cookies, youtube-dl can read the web page as if it's logged in, and the embedded video can be extracted.

cpmydream commented 8 years ago

C:\chirag\Videos\Gate Ravi Lectures\CN Problems>youtube-dl.exe --cookies C:\User s\chirag\Desktop\cookies.txt http://eclassesbyravindra.com/mod/page/view.php?id= 44 [generic] view: Requesting header [redirect] Following redirect to http://eclassesbyravindra.com/enrol/index.php?i d=8 [generic] index: Requesting header WARNING: Falling back on generic information extractor. [generic] index: Downloading webpage [generic] index: Extracting information ERROR: Unsupported URL: http://eclassesbyravindra.com/enrol/index.php?id=8

C:\chirag\Videos\Gate Ravi Lectures\CN Problems>youtube-dl.exe --cookies C:/User s/chirag/Desktop/cookies.txt http://eclassesbyravindra.com/mod/page/view.php?id= 44 [generic] view: Requesting header [redirect] Following redirect to http://eclassesbyravindra.com/enrol/index.php?i d=8 [generic] index: Requesting header WARNING: Falling back on generic information extractor. [generic] index: Downloading webpage [generic] index: Extracting information ERROR: Unsupported URL: http://eclassesbyravindra.com/enrol/index.php?id=8

cpmydream commented 8 years ago

cookies.txt

yan12125 commented 8 years ago

There are no useful information for eclassesbyravindra.com in cookies.txt. Maybe they don't use cookies.

cpmydream commented 8 years ago

C:\chirag\Videos\Gate Ravi Lectures\CN Problems>youtube-dl.exe -o C:\Users\chi g\Desktop\check.mp4 --cookies C:\Users\chirag\Desktop\cookies.txt http://e assesbyravindra.com/mod/page/view.php?id=76 [generic] view: Requesting header [redirect] Following redirect to http://eclassesbyravindra.com/enrol/index.php d=9 [generic] index: Requesting header WARNING: Falling back on generic information extractor. [generic] index: Downloading webpage [generic] index: Extracting information ERROR: Unsupported URL: http://eclassesbyravindra.com/enrol/index.php?id=9

How about this and cookies file is here

cookies.txt

Please help!!!

yan12125 commented 8 years ago

I guess you mean http://eclassesbyravindra.com/mod/page/view.php?id=76? With this cookies.txt the link still redirects to a page asking logging in ("You are currently using guest access Log in"). The cookies approach seems dead.

cpmydream commented 8 years ago

Yes, Cookies do not work!!

yan12125 commented 8 years ago

If you trust me, you can drop me a mail with your password.

yan12125 commented 8 years ago

A workaround from #10541:

youtube-dl -v <vimeo player URL> --referer http://eclassesbyravindra.com/
yan12125 commented 8 years ago

Others will discuss about the workaround even if I keep silent. What youtube-dl tries to do is simple - download videos that can be viewed in browsers. If you found it broken again, please come back and report the incident.

yan12125 commented 7 years ago

Still working for me. Did you upgrade SSL-related softwares recently?

yan12125 commented 7 years ago

First try:

openssl s_client -connect player.vimeo.com:443

And see if that succeeds

yan12125 commented 7 years ago

Could you paste the whole log? openssl tolerates lots of errors that are crucial to Python. And please also paste the output of openssl version and python -c 'import ssl; print(ssl.OPENSSL_VERSION)'

yan12125 commented 7 years ago

Hmm it tries to connect to kolsvrmo.softether.net instead of player.vimeo.com. Something is wrong?

vaibhav101 commented 7 years ago

@vivekm7 If you need to do it for just one or two videos, you can view the source of the web page, Ctrl+F for "player.vimeo.com" and get the video ID from there. If you need to do it for a lot of videos, making a small script which parses pages may be a much better idea.

vaibhav101 commented 7 years ago

@palashcode But this would basically crawl the whole website, not a particular category of videos, right?