Giter Club home page Giter Club logo

lagou-course-downloader's Introduction

lagou-course-downloader

拉勾网课程视频下载工具

本程序仅供学习交流使用

更新日志

2021年5月9日

  • 获取账户下所有课程
  • 加入章节历史下载记录
  • 排除某些课程

2020年12月11日

  • 解决签名不匹配问题

  • 跳过未发布的课程视频

  • 调整代码结构

2020年8月7日

  • 支持最新的拉钩教育视频下载.

前置要求

  1. 已购买拉钩上的视频课程

  2. 成功登陆拉钩网

    官网: https://kaiwu.lagou.com/

其他

Lagou课程的视频现托管在阿里云,相关文档

视频元数据API接口文档:https://help.aliyun.com/document_detail/56124.html?spm=a2c4g.11186623.2.30.14487fbfjBfxAC

视频的PreAuthCode解密算法逆向自aliplayer-min.js

视频片段使用AES-CBC-128加密/解密,通过分析js获取,视频的密钥在视频的m3u8文件中有地址。相关文档

视频片段通过ffmpeg合并 现在直接获取视频的mp4地址,跳过了合成(当然也可以)

视频课程信息在视频首页html中的<script>标签里。 现在通过https://gate.lagou.com/v1/neirong/kaiwu/getCourseLessons?courseId={0} 获取

程序默认下载FHD全高清视频源

如何使用

下载源码

打开shell或者cmd,输入git clone https://github.com/SweetInk/lagou-course-downloader.git

运行(以源码方式)

  1. 下载 IDEA ,并安装,导入之前下载好的源码

  2. 成功登陆拉钩网后

  3. 浏览器打开调试工具

  4. 打开课程首页

    把上图中Cookie值,复制粘贴到CookieStore.javacookie 字段中.

    替换App.java代码中的courseId,savePath中的值为实际的值.

    String courseId = "课程ID";
    String savePath = "视频保存位置";
    Downloader downloader = new Downloader(courseId, savePath);
    downloader.start();
  1. 运行App#main() 方法.

lagou-course-downloader's People

Contributors

aohanhongzhi avatar dependabot[bot] avatar sweetink avatar

Stargazers

 avatar

Watchers

 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.