Giter Site home page Giter Site logo

open163-parser's Introduction

Simple Open163 Parser

一个简单的网易公开课视频 URL 提取工具, 获取到 URL 后,就可以使用迅雷等下载工具在 PC 端下载网易公开课的视频。

视频URL提取使用了 flvcd.com 的服务,我只是解析了一下网页。

原本目的是为了下载 iOS7 的公开课。测试了一些另外的课程,有些会解析出错。如果有时间我会 review 一下……

Dependencies

  • Python3
  • requests
  • beautifulsoup4

Usage

$ python Open163Parser.py -c <course_url>

这里的 URL 需要是课程主页的 URL。例如 http://open.163.com/special/opencourse/ios7.html.

视频的 URL 会写到当前目录的 urls.txt 文件中,复制到迅雷就可以下载了。

视频的完整信息,包括名字、视频URL、字幕URL,会写到当前目录的 videoList.json 中,主要是为了下面两个操作使用。想要做别的事情可以直接读这个文件。

$ python Open163Parser.py -s

下载视频的中英字幕文件。

$ python Open163Parser.py -r VIDEO_FOLDER

视频下载完成后,文件名不是视频名而是杂乱的字符串,这时候使用此命令给出视频文件夹的路径,来将视频重命名。

open163-parser's People

Contributors

gyuu avatar

Watchers

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