Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iqiyi]something wrong with vip video #8661

Closed
Lua12138 opened this issue Feb 25, 2016 · 1 comment
Closed

[iqiyi]something wrong with vip video #8661

Lua12138 opened this issue Feb 25, 2016 · 1 comment

Comments

@Lua12138
Copy link
Contributor

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
@yan12125
Copy link
Collaborator

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 [email protected] --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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants