VideoHelp Forum
+ Reply to Thread
Results 1 to 24 of 24
Thread
  1. Education Student (Grad.) CrymanChen's Avatar
    Join Date
    Apr 2022
    Location
    Hong Kong
    Search Comp PM
    Hey guys, An idea just hit me when last night I was watching a movie, that why not try to write a script in Python to automatically download the video we want.

    So the iQIYI-Downloader was wrote. I uploaded it onto GitHub so everyone could use it.

    There may be some problems since I haven't really debug it. I did several tests and found out that it functions well, so why not share it on GitHub with y'all?

    iQIYI-Downloader: https://github.com/CrymanChen/iQIYI-Downloader

    This thread can be used to debug, maybe I'll try my best to improve it when you guys give me suggestions. Criticize me hardly
    twitter @Cryman_Chen
    email crymanchen@gmail.com
    Quote Quote  
  2. Education Student (Grad.) CrymanChen's Avatar
    Join Date
    Apr 2022
    Location
    Hong Kong
    Search Comp PM
    What mainly my script did was to parse the m3u8 content from the network traffic. And I used another open-source (I guess so because it's on GitHub too) tool to generate a command to let the download begin.

    P.S. Now it works for NORMAL MOVIES!
    I'll try harder to make it work for OTHER KINDS OF MOVIES AND SERIES!
    Last edited by CrymanChen; 16th Jul 2023 at 15:21.
    twitter @Cryman_Chen
    email crymanchen@gmail.com
    Quote Quote  
  3. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Well done. We need more like this.
    Quote Quote  
  4. Education Student (Grad.) CrymanChen's Avatar
    Join Date
    Apr 2022
    Location
    Hong Kong
    Search Comp PM
    No worries. Happy that y'all like it.
    twitter @Cryman_Chen
    email crymanchen@gmail.com
    Quote Quote  
  5. Do you know how to parse 4K videos from Iqiyi?
    Quote Quote  
  6. Education Student (Grad.) CrymanChen's Avatar
    Join Date
    Apr 2022
    Location
    Hong Kong
    Search Comp PM
    4K (2160p) in some titles require downloading their app to watch it in there.
    But I don't know how to intercept those in-app traffic, maybe someone could join me (put a post here to see if any friends to join)
    twitter @Cryman_Chen
    email crymanchen@gmail.com
    Quote Quote  
  7. Education Student (Grad.) CrymanChen's Avatar
    Join Date
    Apr 2022
    Location
    Hong Kong
    Search Comp PM
    Guys, Managed to download nearly all m3u8 videos from iQIYI.
    Including those from "云影院", the Cloud Cinema.
    Image
    [Attachment 72565 - Click to enlarge]
    twitter @Cryman_Chen
    email crymanchen@gmail.com
    Quote Quote  
  8. Member piaohua's Avatar
    Join Date
    May 2023
    Location
    中国
    Search PM
    All of them. Does that mean you have to be a VIP?
    Quote Quote  
  9. CrymanChen, are you in China? IQiyi have China ver and International version.
    Quote Quote  
  10. Education Student (Grad.) CrymanChen's Avatar
    Join Date
    Apr 2022
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by piaohua View Post
    All of them. Does that mean you have to be a VIP?
    Yes, of course.
    twitter @Cryman_Chen
    email crymanchen@gmail.com
    Quote Quote  
  11. Education Student (Grad.) CrymanChen's Avatar
    Join Date
    Apr 2022
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by madcat_ninja View Post
    CrymanChen, are you in China? IQiyi have China ver and International version.
    Right now I have only tested the Chinese version.
    twitter @Cryman_Chen
    email crymanchen@gmail.com
    Quote Quote  
  12. Member piaohua's Avatar
    Join Date
    May 2023
    Location
    中国
    Search PM
    Originally Posted by CrymanChen View Post
    Guys, Managed to download nearly all m3u8 videos from iQIYI.
    Including those from "云影院", the Cloud Cinema.
    Image
    [Attachment 72565 - Click to enlarge]

    Your itest.py is not uploaded to GitHub!
    Quote Quote  
  13. Member piaohua's Avatar
    Join Date
    May 2023
    Location
    中国
    Search PM
    I borrowed a VIP6 account from a friend and used your script to successfully download the VIP TV series, which are not encrypted, but the "云影院" has to be purchased for an additional fee, so I didn't try it!
    Quote Quote  
  14. Member piaohua's Avatar
    Join Date
    May 2023
    Location
    中国
    Search PM
    I grabbed the m3u8 link with the client, but I can't download it, and the dash link is shorter than the web version, I know very little about the code, do you have any clue?
    Code:
    Hypertext Transfer Protocol
         [truncated]GET /20230527/c9/59/271e663c6deceed23ffe4dad12a6b618.m3u8?qdv=2&qd_uid=0&qd_vip=0&qd_src=01012001010000000000&qd_tm=1690280168220&qd_p=da41fc70&qd_k=7366c3faf2f0c357cfbdae688b7e1cf8&qd_index=vod&qd_tvid=7447809085423600&qd_sc=
        Host: meta-cdn.video.iqiyi.com\r\n
        Accept: */*\r\n
        Accept-Encoding: gzip, deflate\r\n
        qyid: zbqabijtp3t5mwf66w7ianoj32ssuq3w\r\n
        User-Agent: QYPlayer/Windows/6.2306.1070;BT/mcto;NetType/unknown;Hv/;QTP/2.0.89.4\r\n
        \r\n
        [Full request URI [truncated]: http://meta-cdn.video.iqiyi.com/20230527/c9/59/271e663c6deceed23ffe4dad12a6b618.m3u8?qdv=2&qd_uid=0&qd_vip=0&qd_src=01012001010000000000&qd_tm=1690280168220&qd_p=da41fc70&qd_k=7366c3faf2f0c357cfbdae688b7e1cf8]
        [HTTP request 1/1]
        [Response in frame: 10825]
    
    
    
    Hypertext Transfer Protocol
         [truncated]GET /dash?tvid=7447809085423600&np=1&ut=0&ps=0&d=1&pm=0&vid=254817724db8a1366084add2543b4c14&src=01012001010000000000&k_tag=1&k_uid=zbqabijtp3t5mwf66w7ianoj32ssuq3w&tm=1690280167205&bid=1&fr=25&pt=0&s=0&rs=1&slid=0&sver=2&k_ve
        Host: cache.video.iqiyi.com\r\n
        Accept: */*\r\n
        Accept-Encoding: gzip, deflate\r\n
        qyid: zbqabijtp3t5mwf66w7ianoj32ssuq3w\r\n
        bop: {"version":"4.0"}\r\n
        prio: [{"dr":-1,"code":1},{"dr":-1,"code":2}]\r\n
        User-Agent: QYPlayer/Windows/6.2306.1070;BT/mcto;NetType/unknown;Hv/;QTP/2.0.89.4\r\n
        \r\n
        [Full request URI [truncated]: http://cache.video.iqiyi.com/dash?tvid=7447809085423600&np=1&ut=0&ps=0&d=1&pm=0&vid=254817724db8a1366084add2543b4c14&src=01012001010000000000&k_tag=1&k_uid=zbqabijtp3t5mwf66w7ianoj32ssuq3w&tm=1690280167205&bi]
        [HTTP request 1/1]
        [Response in frame: 10697]
    The client can't select 4K for viewing, but it can download 4K, and the downloaded video format is QSV, which must be used to view the client. Below is the information captured during the download:
    Code:
    Hypertext Transfer Protocol
         [truncated]GET /dash?tvid=3243657877503800&bid=0&vid=367be60b160313d748337e1411024345&src=01012001010000000000&vt=1&ori=cube&rs=1&uid=1442188499&pck=51AxB5xm2hM7E4l602m3rEo2JK8MBK656isCZH8FhE3LXuNkUdTooFHQ72poHpKYJm33Xc6&ut=1&messageId=c
        Host: cache.video.iqiyi.com\r\n
        Accept: */*\r\n
        Accept-Encoding: gzip, deflate, sdch\r\n
        Accept-Language: zh-cn\r\n
        Connection: Keep-Alive\r\n
        Content-Type: application/octet-stream\r\n
        Range: bytes=0-\r\n
        User-Agent: Cube_WINPC/16.0.3.7803;NetType/unknown;ccr/0;QTP/2.0.89.4\r\n
        \r\n
        [Full request URI [truncated]: http://cache.video.iqiyi.com/dash?tvid=3243657877503800&bid=0&vid=367be60b160313d748337e1411024345&src=01012001010000000000&vt=1&ori=cube&rs=1&uid=1442188499&pck=51AxB5xm2hM7E4l602m3rEo2JK8MBK656isCZH8FhE3LXu]
        [HTTP request 1/2]
        [Response in frame: 7254]
        [Next request in frame: 7266]
    Last edited by piaohua; 25th Jul 2023 at 06:12. Reason: Add Content
    Quote Quote  
  15. Education Student (Grad.) CrymanChen's Avatar
    Join Date
    Apr 2022
    Location
    Hong Kong
    Search Comp PM
    The decryption and automatic download of movies from the Cloud Cinema is still under maintenance so I won't upload it.
    Try writing your own code before asking via your mouth.
    twitter @Cryman_Chen
    email crymanchen@gmail.com
    Quote Quote  
  16. Originally Posted by CrymanChen View Post
    Hey guys, An idea just hit me when last night I was watching a movie, that why not try to write a script in Python to automatically download the video we want.

    So the iQIYI-Downloader was wrote. I uploaded it onto GitHub so everyone could use it.

    There may be some problems since I haven't really debug it. I did several tests and found out that it functions well, so why not share it on GitHub with y'all?

    iQIYI-Downloader: https://github.com/CrymanChen/iQIYI-Downloader

    This thread can be used to debug, maybe I'll try my best to improve it when you guys give me suggestions. Criticize me hardly
    Hello! Thank you for sharing your work!
    I have some problems with finding a dash address
    "Please open the developer tools of the browser and search by keyword. For each video, there should be "only one" "dash address". The search result should be only one, and it should start with "cache.video.iqiyi.com"."

    the URL is https://www.iq.com/play/deep-night-episode-1-1vqzwx8ii8s?lang=en_us

    Can you explain to me where I should search it?
    Thank you.
    Quote Quote  
  17. Education Student (Grad.) CrymanChen's Avatar
    Join Date
    Apr 2022
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by TetianaBFM View Post
    Originally Posted by CrymanChen View Post
    Hey guys, An idea just hit me when last night I was watching a movie, that why not try to write a script in Python to automatically download the video we want.

    So the iQIYI-Downloader was wrote. I uploaded it onto GitHub so everyone could use it.

    There may be some problems since I haven't really debug it. I did several tests and found out that it functions well, so why not share it on GitHub with y'all?

    iQIYI-Downloader: https://github.com/CrymanChen/iQIYI-Downloader

    This thread can be used to debug, maybe I'll try my best to improve it when you guys give me suggestions. Criticize me hardly
    Hello! Thank you for sharing your work!
    I have some problems with finding a dash address
    "Please open the developer tools of the browser and search by keyword. For each video, there should be "only one" "dash address". The search result should be only one, and it should start with "cache.video.iqiyi.com"."

    the URL is https://www.iq.com/play/deep-night-episode-1-1vqzwx8ii8s?lang=en_us

    Can you explain to me where I should search it?
    Thank you.
    Since I don't have iQIYI International account, this script is only for iqiyi.com rather than iq.com
    But the logic stays the same on both sites. You can try editing for your own.
    twitter @Cryman_Chen
    email crymanchen@gmail.com
    Quote Quote  
  18. download m3u8 file (720p) https://www.upload.ee/files/16417987/Deep.Night.Episode.11280x720.m3u8.html

    then run N_m3u8DL-RE "Deep.Night.Episode.11280x720.m3u8"
    Quote Quote  
  19. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Originally Posted by Lotos2007 View Post
    How to download this video?
    https://www.iqiyi.com/v_1uzgsbtae58.html
    https://www.transfernow.net/dl/2024072404Zoz5E0
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  20. Hi there, I get some issues when trying impersonate the dash request.

    I tried Copy as cURL, which also gives me no dash with m3u, whilst I can see in the response of the request on the website.

    Is this something to do with this video?
    https://www.iqiyi.com/v_19rrjac83w.html?vfm=2008_aldbd&fv=p_02_01
    Quote Quote  
  21. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    There's no need to impersonate. Works directly from https://curlconverter.com/ with basic requests import.

    https://www.transfernow.net/dl/20240912FJ0wCG87
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  22. Hi there,
    Just got home and it seems that you can no longer access the series in italy, apart from some terrible tape scans on the CCTV YouTube.
    I tried a chinese VPN and it works fine.

    Thank you for helping with the first episode, I think I can now do it.
    Quote Quote  
  23. this works for now if anyone is interested:

    Code:
    import requests
    import os
    
    # you don't actually need any cookies for free content at least, just the names
    cookies = {
        'QP0034': '',
        'PD005': '',
        'QC006': '',
        'QP0037': '',
        'QC005': '',
        'QC008': '',
        'QC010': '',
        'QC007': '',
        'QP0035': '',
        'QP0030': '',
        'T00404': '',
        'IMS': '',
        'QC234': '',
        'QC142': '',
        'QP0027': '',
        'QP0036': '',
        'QP007': '',
        '__dfp': '',
        'QC173': '',
        'QC189': '',
    }
    
    headers = {
        'Referer': 'https://www.iqiyi.com',
        'Origin': 'https://www.iqiyi.com',
    }
    
    url = input("Paste url here:")
    
    m3u8DataJson = requests.get(url, cookies=cookies, headers=headers).json()
    
    for i in m3u8DataJson["data"]["program"]["video"]:
        if "m3u8" in i:
            m3u8 = (i["m3u8"])
    
    with open("iqiyi.m3u", "w") as f:
        f.write(m3u8)
    
    os.system(f'n-m3u8dl-re iqiyi.m3u')
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!