Giter Site home page Giter Site logo

cntv-video-downloader's Introduction

cntv-video-downloader

cntv/cctv视频下载

1. 项目结构说明

  • lib/

    解析url获取视频链接, 合并分段视频

  • util/

    工具集

  • share/

    共享文件

  • out/

    结果文件

  • main.py

    主程序入口

  • requirements.txt

    python依赖库

2. 项目运行说明

1. 搭建python开发环境

  • 推荐安装pyenv和pyenv-virtualenv, 完全隔离不同项目的开发环境.

  • pyenv的安装, 请参考https://github.com/pyenv/pyenv

  • pyenv-virtualenv的安装, 请参考https://github.com/pyenv/pyenv-virtualenv

  • 当然, 你也可以直接使用系统默认安装的python进行操作, 不过平时要养成良好的习惯, 推荐使用前面的方式操作.

  • 安装python虚拟环境

      pyenv virtualenv 2.7.6 env_cntv-video-downloader_2.7.6        // 2.7.6: 虚拟环境的python版本, env_cntv-video-downloader_2.7.6: 虚拟环境
    

    其中, 安装不同版本的python:

    pyenv install 2.7.6         // 指定版本号
    

2. 运行项目

  pyenv activate env_cntv-video-downloader_2.7.6             // 切换到项目对应的虚拟环境
  pip install -r requirements.txt                           // 安装依赖库
  python main.py                                            // 运行项目

3. 如何贡献

  • fork
  • modify
  • pull request

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.