Giter Site home page Giter Site logo

download-geektime-video's Introduction

download-geektime-video

此工具为下载极客时间已购课程方便离线观看 参考:https://github.com/domliang/geektime-dl

注意:目前video下载已经失效。 原因:极客时间用了aliplayer组件并进行了加密,不再直接暴露视频地址。所以暂时还没好办法进行解析。

环境要求

(1)golang环境
(2)已安装 ffmpeg:brew install ffmpeg

使用

1. clone项目

git clone https://github.com/wobushixiaoj/download-geektime-video.git

2. 进入项目目录,视频下载地址即 download-geektime-video.go 所在的目录

cd download-geektime-video/

3. 编辑配置文件

vim config.json

配置文件示例

{
  "cid": "98",
  "_ga": "GA1.2.1666006123.1560340327",
  "_gid": "GA1.2.1666006123.1560340327",
  "GCID": "7d63098-852651f-85359ab-348d01c",
  "GCESS": "BAYEXcpaOwEEBoYRAAUEAAAAAAIEOI0HXQgBAwsCBAAMAQEKBAAAAAAEBAAvDQAHBOioBL0JAQEDBDiNB10-"
}
cid获取

浏览器打开并登录极客时间打开某一课程

https://time.geekbang.org/course/detail/168-68568

其中168是cid

cookie获取

拿到 .time.geekbang.org 下面的4个cookie:_ga,_gid,GCID,GCESS

4.执行下载

go run download-geektime-video.go

download-geektime-video's People

Contributors

wobushixiaoj 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.