[iqiyi]something wrong with vip video #7020

Closed
opened 2026-02-21 03:29:27 -05:00 by deekerman · 1 comment
Owner

Originally created by @Lua12138 on GitHub (Feb 25, 2016).

when I try to download some VIP videos, I got the message WARNING: unable to log in: please login via the web interface and enter the CAPTCHA code, and I try to login in with web but no CAPTCHA.(before the video, I have already download 2 VIP videos.)
I guess, the IQIYI may be check the interval of login, because there are many block a video. and a download URL only has 20 minutes. so I have to login many times to download a video.

[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'-v', u'http://www.iqiyi.com/v_19rrkbqj9o.html#vfrm=7-2-0-1']
[debug] Encodings: locale cp936, fs mbcs, out None, pref cp936
[debug] youtube-dl version 2016.02.22
[debug] Python version 2.7.11 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-77197-gdf2ce13, ffprobe N-77197-gdf2ce13
[debug] Proxy map: {}
[iqiyi] Get token for logging
[iqiyi] Validate credentials
WARNING: unable to log in: please login via the web interface and enter the CAPTCHA code
[iqiyi] temp_id: download video page
[iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading JSON metadata
[iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading video authentication JSON
[iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Download video info of segment 1 for format h3
[iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading video authentication JSON
WARNING: [iqiyi] Needs a VIP account for full video
[iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading video authentication JSON
[iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Download video info of segment 1 for format h5
[iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading video authentication JSON
[iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading video authentication JSON
[iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Download video info of segment 1 for format h2
[iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading video authentication JSON
[iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading video authentication JSON
[iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Download video info of segment 1 for format h6
[iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading video authentication JSON
[debug] Invoking downloader on u'http://218.205.82.149/videos/vip/20151201/cc/07/84d2b2ecd9c061ab1f5da161c8f9d6de.f4v?key=0dead0ab7b22a7f04b39d61ae07b3e67b&src=iqiyi.com&qd_tvid=423061600&qd_vipres=2&qd_index=1&qd_aid=423061600&qd_stert=0&qd_scc=fd4cd7279f52b591d201e726a1b36edd&qd_sc=1c5469d9c7a905980efad06b12747818&qd_src=1006665ba7c0d860bc9fe79944dbc0da&qd_ip=700b4341&qd_uid=0&qd_tm=1456387518000&qd_vip=0&tn=1456387515&qyid=83d24718a6b64b34a7082598aeb5455f&vid=2eed74a640b8c0e9dc27d79dc66d6ae8&cid=afbe8fd3d73448c9&QY00001=1023108576&su=e01e5fb65ec84d758ccf6a88b12197bd&bt=&client=&t=1456387519_e30c6f06b69f4f7a762e26a99822b6fe&z=&ct=&uuid=700b4341-56ceb5bf-a0'
[download] 夏洛特烦恼-2eed74a640b8c0e9dc27d79dc66d6ae8.f4v has already been downloaded
[download] 100% of 125.63MiB
Originally created by @Lua12138 on GitHub (Feb 25, 2016). when I try to download some VIP videos, I got the message `WARNING: unable to log in: please login via the web interface and enter the CAPTCHA code`, and I try to login in with web but no CAPTCHA.(before the video, I have already download 2 VIP videos.) I guess, the IQIYI may be check the interval of login, because there are many block a video. and a download URL only has 20 minutes. so I have to login many times to download a video. ``` code [debug] System config: [] [debug] User config: [] [debug] Command-line args: [u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'-v', u'http://www.iqiyi.com/v_19rrkbqj9o.html#vfrm=7-2-0-1'] [debug] Encodings: locale cp936, fs mbcs, out None, pref cp936 [debug] youtube-dl version 2016.02.22 [debug] Python version 2.7.11 - Windows-7-6.1.7601-SP1 [debug] exe versions: ffmpeg N-77197-gdf2ce13, ffprobe N-77197-gdf2ce13 [debug] Proxy map: {} [iqiyi] Get token for logging [iqiyi] Validate credentials WARNING: unable to log in: please login via the web interface and enter the CAPTCHA code [iqiyi] temp_id: download video page [iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading JSON metadata [iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading video authentication JSON [iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Download video info of segment 1 for format h3 [iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading video authentication JSON WARNING: [iqiyi] Needs a VIP account for full video [iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading video authentication JSON [iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Download video info of segment 1 for format h5 [iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading video authentication JSON [iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading video authentication JSON [iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Download video info of segment 1 for format h2 [iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading video authentication JSON [iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading video authentication JSON [iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Download video info of segment 1 for format h6 [iqiyi] 2eed74a640b8c0e9dc27d79dc66d6ae8: Downloading video authentication JSON [debug] Invoking downloader on u'http://218.205.82.149/videos/vip/20151201/cc/07/84d2b2ecd9c061ab1f5da161c8f9d6de.f4v?key=0dead0ab7b22a7f04b39d61ae07b3e67b&src=iqiyi.com&qd_tvid=423061600&qd_vipres=2&qd_index=1&qd_aid=423061600&qd_stert=0&qd_scc=fd4cd7279f52b591d201e726a1b36edd&qd_sc=1c5469d9c7a905980efad06b12747818&qd_src=1006665ba7c0d860bc9fe79944dbc0da&qd_ip=700b4341&qd_uid=0&qd_tm=1456387518000&qd_vip=0&tn=1456387515&qyid=83d24718a6b64b34a7082598aeb5455f&vid=2eed74a640b8c0e9dc27d79dc66d6ae8&cid=afbe8fd3d73448c9&QY00001=1023108576&su=e01e5fb65ec84d758ccf6a88b12197bd&bt=&client=&t=1456387519_e30c6f06b69f4f7a762e26a99822b6fe&z=&ct=&uuid=700b4341-56ceb5bf-a0' [download] 夏洛特烦恼-2eed74a640b8c0e9dc27d79dc66d6ae8.f4v has already been downloaded [download] 100% of 125.63MiB ```
Author
Owner

@yan12125 commented on GitHub (Feb 25, 2016):

youtube-dl should handle CAPTCHA gracefully. See #154. Current workaround is using --cookies. For example: (cookie.txt will be created automatically)

$ youtube-dl --cookies cookie.txt --username user@example.com --password some_password http://www.iqiyi.com/v_19rrny4w8w.html -vF
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--cookies', 'cookie.txt', '--username', 'PRIVATE', '--password', 'PRIVATE', 'http://www.iqiyi.com/v_19rrny4w8w.html', '-vF']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.02.22
[debug] Git HEAD: a774a51
[debug] Python version 3.5.1 - Linux-4.4.1-2-ARCH-x86_64-with-arch-Arch-Linux
[debug] exe versions: avconv v12_dev0-2381-g8caadfc, avprobe v12_dev0-2381-g8caadfc, ffmpeg 3.0, ffprobe 3.0, rtmpdump 2.4
[debug] Proxy map: {}
[iqiyi] Get token for logging
[iqiyi] Validate credentials
[iqiyi] temp_id: download video page
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading JSON metadata
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Download video info of segment 1 for format h6
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Download video info of segment 2 for format h6
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Download video info of segment 3 for format h6
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Download video info of segment 4 for format h6
^C
ERROR: Interrupted by user

$ youtube-dl --cookies cookie.txt http://www.iqiyi.com/v_19rrny4w8w.html -vF         
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--cookies', 'cookie.txt', 'http://www.iqiyi.com/v_19rrny4w8w.html', '-vF']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.02.22
[debug] Git HEAD: a774a51
[debug] Python version 3.5.1 - Linux-4.4.1-2-ARCH-x86_64-with-arch-Arch-Linux
[debug] exe versions: avconv v12_dev0-2381-g8caadfc, avprobe v12_dev0-2381-g8caadfc, ffmpeg 3.0, ffprobe 3.0, rtmpdump 2.4
[debug] Proxy map: {}
[iqiyi] temp_id: download video page
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading JSON metadata
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Download video info of segment 1 for format h6
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Download video info of segment 2 for format h6
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Download video info of segment 3 for format h6
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Download video info of segment 4 for format h6
[iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON
^C
ERROR: Interrupted by user

There's no need to provide crendentials after the first time. Cookies may get expired after some time. Just delete cookie.txt and run the first command again.

@yan12125 commented on GitHub (Feb 25, 2016): youtube-dl should handle CAPTCHA gracefully. See #154. Current workaround is using `--cookies`. For example: (`cookie.txt` will be created automatically) ``` $ youtube-dl --cookies cookie.txt --username user@example.com --password some_password http://www.iqiyi.com/v_19rrny4w8w.html -vF [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['--cookies', 'cookie.txt', '--username', 'PRIVATE', '--password', 'PRIVATE', 'http://www.iqiyi.com/v_19rrny4w8w.html', '-vF'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2016.02.22 [debug] Git HEAD: a774a51 [debug] Python version 3.5.1 - Linux-4.4.1-2-ARCH-x86_64-with-arch-Arch-Linux [debug] exe versions: avconv v12_dev0-2381-g8caadfc, avprobe v12_dev0-2381-g8caadfc, ffmpeg 3.0, ffprobe 3.0, rtmpdump 2.4 [debug] Proxy map: {} [iqiyi] Get token for logging [iqiyi] Validate credentials [iqiyi] temp_id: download video page [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading JSON metadata [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Download video info of segment 1 for format h6 [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Download video info of segment 2 for format h6 [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Download video info of segment 3 for format h6 [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Download video info of segment 4 for format h6 ^C ERROR: Interrupted by user $ youtube-dl --cookies cookie.txt http://www.iqiyi.com/v_19rrny4w8w.html -vF [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['--cookies', 'cookie.txt', 'http://www.iqiyi.com/v_19rrny4w8w.html', '-vF'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2016.02.22 [debug] Git HEAD: a774a51 [debug] Python version 3.5.1 - Linux-4.4.1-2-ARCH-x86_64-with-arch-Arch-Linux [debug] exe versions: avconv v12_dev0-2381-g8caadfc, avprobe v12_dev0-2381-g8caadfc, ffmpeg 3.0, ffprobe 3.0, rtmpdump 2.4 [debug] Proxy map: {} [iqiyi] temp_id: download video page [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading JSON metadata [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Download video info of segment 1 for format h6 [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Download video info of segment 2 for format h6 [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Download video info of segment 3 for format h6 [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Download video info of segment 4 for format h6 [iqiyi] f3cf468b39dddb30d676f89a91200dc1: Downloading video authentication JSON ^C ERROR: Interrupted by user ``` There's no need to provide crendentials after the first time. Cookies may get expired after some time. Just delete `cookie.txt` and run the first command again.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#7020
No description provided.