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
132k stars 10.01k forks source link

Problem on download from Shahid Plus because of captcha #13287

Open Mr-Mostafa-Ahmed opened 7 years ago

Mr-Mostafa-Ahmed commented 7 years ago

Hello Shahid.net site changed the way on login they add captcha code to login screen so when I use the script to download any movie with plus account and provide my login data I see this error message http://s9.postimg.org/ocy9mwp1b/screenshot_30.png in English its mean The code you entered did not match the verification code. Please try again and this is login screen http://s9.postimg.org/3u3dhub3z/screenshot_31.png please dose there any way to solve this problem???

daoudeddy commented 7 years ago

You can download by inspecting the player page using your browser and getting the m3u8 file (google it to see how you can do it) e.g. : youtube-dl https://linkofm3u8file

N.B. If you want to download a 720p change the player to 720p and then copy the link address of the m3u8 file

Mr-Mostafa-Ahmed commented 7 years ago

I know how to download by m3u8 file, but dose there any way to solve verification code by the script itself ? if you need account to test it tell me and I will send login details to you.

dstftw commented 7 years ago

You may try passing authenticated cookies from browser.

Mr-Mostafa-Ahmed commented 7 years ago

I try that and saved cookies but same error screenshot_35

I can provide the cookies download it

alnajjarr commented 4 years ago

hello can any one help me out of this problem am facing it too how can i download from shahid plus ????

bassel999 commented 4 years ago

Any update on this?

Mr-Mostafa-Ahmed commented 4 years ago

When I try to login to my account and download video I get this error

.\youtube-dl.exe --verbose --list-formats --username --password https://shahid.mbc.net/ar/series/%D9%81%D9%8A-%D9%83%D9%84-%D8%A3%D8%B3%D8%A8%D9%88%D8%B9-%D9%8A%D9%88%D9%85-%D8%AC%D9%85%D8%B9%D8%A9-%D8%A7%D9%84%D9%85%D9%88%D8%B3%D9%85-1-%D8%A7%D9%84%D8%AD%D9%84%D9%82%D8%A9-4/episode-398513 [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['--verbose', '--list-formats', '--username', 'PRIVATE', '--password', 'PRIVATE', 'https://shahid.mbc.net/ar/series/%D9%81%D9%8A-%D9%83%D9%84-%D8%A3%D8%B3%D8%A8%D9%88%D8%B9-%D9%8A%D9%88%D9%85-%D8%AC%D9%85%D8%B9%D8%A9-%D8%A7%D9%84%D9%85%D9%88%D8%B3%D9%85-1-%D8%A7%D9%84%D8%AD%D9%84%D9%82%D8%A9-4/episode-398513'] [debug] Encodings: locale cp1256, fs mbcs, out cp720, pref cp1256 [debug] youtube-dl version 2020.01.24 [debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362 [debug] exe versions: ffmpeg N-95032-g3104100a12, ffprobe N-95032-g3104100a12 [debug] Proxy map: {} [Shahid] Logging in WARNING: [Shahid] None: Failed to parse JSON Expecting value: line 1 column 1 (char 0) ERROR: Unable to download JSON metadata: HTTP Error 405: Method Not Allowed (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300z1\build\youtube_dl\extractor\common.py", line 627, in _request_webpage File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300z1\build\youtube_dl\YoutubeDL.py", line 2237, in urlopen File "C:\Python\Python34\lib\urllib\request.py", line 470, in open File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response File "C:\Python\Python34\lib\urllib\request.py", line 508, in error File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default