Coder Social home page Coder Social logo

mewx / kantv-downloader-cli Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 96 KB

(KanTV is down forever) “看TV”下载器,命令行版,使用Android API,Go语言编写。 Downloading KanTV videos via command line interface (CLI) written in Go.

License: GNU General Public License v3.0

Go 77.03% Starlark 18.96% Shell 4.01%
kantv golang cli command-line-tool swagger openapi2

kantv-downloader-cli's Introduction

看TV 命令行版 视频(电影/电视剧)下载器

Build Status GitHub Action CI FOSSA Status

本版本封装的是 看TV Android 客户端的API。

编译方式

请事先下载好最新版 Bazel 编译套件: https://docs.bazel.build/versions/master/install.html

然后执行:

$ bazel build :kantv

使用方式

如果不想编译,请直接到 Release区 下载最新版使用。

查看完整用法的命令:

$ kantv --help

获取支持的国家列表

$ kantv country

下载视频

指定网址下载视频:

$ kantv download --url <video_URL>

# 例子:
$ kantv download --url https://www.wekan.tv/movie/302002655075001
$ kantv download --url https://www.wekan.tv/tvdrama/301930368997001-161930368997002 --outdir ~/downloads

指定 --outdir ... 可以自定义下载位置。

如果没有网址,你也可以通过指定 TVID (+Part ID) 来下载视频。TVID可以通过搜索功能获取,也可以通过网址提取。

命令如下:

$ kantv download --tvid <TVID>

# 例子:
$ kantv download --tvid 302002655075001

或者:

$ kantv download --tvid <TVID> --partid <Part ID>

# 例子:
$ kantv download --tvid 301930368997001 --partid 161930368997002 --outdir ~/Downloads

目前版本视频没有合并,有的播放器可以通过m3u8播放。 下一个版本将合并成一个ts文件。

kantv-downloader-cli's People

Contributors

fossabot avatar mewx avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

fossabot

kantv-downloader-cli's Issues

Add CLI interface for non-interactive

Using bazel + gazelle builds.

Going to support non-interactive cli mode only.

CLI module:

Should provide place holder arguments:

  • login #3
  • info/config: n_thread, user_agent, cache_size, max_parallel, max_download_file (need to copy codes from BaidupanPCS-Go, savedir #12
  • download one movie and all episodes - with save folder/file name #8 #9 #10 #11
  • search, result paging #7
  • register #5
  • anonymous mode (web API: using wechat watch code) #6
  • set proxy (http/https/auto/socks5)
  • override cookies
  • exit

Add anonymous API

store sessions to a user directory, but need to check sessions regularly

How to use your cli downloader?

Hi MewX,

I don't see any source code committed? Have you developed them yet? I'm a dev too, and happy to contribute to this project.

Saw some encrypted media files

using ffmpeg again:

e.g. using m3u8 directly

ffmpeg -allowed_extensions ALL -i play.m3u8 -c copy "../复仇者联盟3:无限战争(高清版).mkv" 

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.