Giter Site home page Giter Site logo

yiz24 / iqiyi-downloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crymanchen/iqiyi-downloader

0.0 0.0 0.0 6 MB

A repo for parsing m3u8 link and downloading non-DRM protected movies from iQIYI (爱奇艺).

License: MIT License

Python 100.00%

iqiyi-downloader's Introduction

iQIYI-Downloader

[中文] | [English]

v1.2

已解析云影院电影 image

项目名称

iQIYI-Downloader

项目介绍

一个用Python编写而成,用于解析爱奇艺内容的m3u8内容,并借助三方工具下载视频的程序。
目前v1.1版本已优化解析逻辑,可以做到:
·对于电视剧,免费、VIP、独播等电视剧均可成功解析(应该能等同于全部了吧……)
·对于电影,免费和VIP电影均可成功解析
·云影院电影(v1.2)

免责声明

本Python程序仅用于学习用途,为本人日常练手的一个小作品。请勿将其用于商业用途,违者可能违反相关法律,并接受对应处罚。
本程序使用到了nilaodaN_m3u8DL-RE作为底层下载工具,在此向作者nilaoda表示感谢。此外,与本人其他所有项目一致,本人无意侵犯任何个人或实体的任何权利,若该情况不甚发生,烦请联系本人以便及时进行下一步处理。

使用说明

  1. 先决条件(Prerequisites)
    为了运行该程序,请确保您拥有以下环境:
    ·Windows(R) 设备
    ·Python 3
    ·(在上一条的基础上)通过pip install -r requirements.txt安装第三方库(下同1.运行程序第1步)
  2. 运行程序
    目前仅在Windows端进行了测试。请在设备上打开CMD窗口,并在命令行中输入:
    第1步:pip install -r requirements.txt
    第2步:python iqiyi.py
  3. 输入“dash地址”
    💡如何查找“dash地址”?
    请打开浏览器开发者工具,通过关键字进行查找。对于每个视频,“dash地址”应“有且只有一个”,查找结果应只有一个,且应以“cache.video.iqiyi.com”开头。
    20230717021050
  4. 输入保存文件名
    image
    与此同时,你应该已经能看到状态码和延时(ms)。
    在v1.1版本中,我们为状态码和延时增加了颜色,试图增加程序的视觉效果。
  5. 调用N_m3u8DL-RE进行下载
    20230717021650
  6. 可决定是否保留解析生成的.m3u8文件
    20230717022024

代码注释和说明

  1. program = 're.exe'的值请与N_m3u8DL-RE的本地路径一致。必要时请使用绝对路径。
  2. headers的值为默认值。可根据实际情况进行修改。
    [附]cURL转换地址:https://curlconverter.com
  3. 输入保存文件名时,输入和最终结果的对应关系为:
    Output name (default=output): 示例视频
    最终的视频名称为示例视频.mp4
    (default=output) 该语句已在v1.1版本被删除,原因是经过测试,发现没有设置默认值。
  4. [实验性功能] [针对云影院电影] 本项目用于解析爱奇艺普通视频,但也可配合我的另一个项目WKS-KEYS,以《爱奇艺云影院加密流媒体视频下载纪实》作为参考,获取受Widevine保护的加密视频。

iqiyi-downloader's People

Contributors

crymanchen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.