GithubHelp home page GithubHelp logo

ndslib / mildom_dl Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 7.23 MB

Command-line program to download videos from Mildom.com

License: The Unlicense

Python 22.39% Jupyter Notebook 77.61%
mildom-dl mildom download mp4

mildom_dl's Introduction

Mildom_dl

this project is currently under development.

(日本語/English)

How to install mildom_dl

$ pip3 install git+https://github.com/NDSLib/mildom_dl

TODO

  • archive download
  • live download
  • command support
  • Resolution Change support

Usage

video

$ mildom-dl -u https://www.mildom.com/playback/10738086?v_id=10738086-1598025891 -o out.mp4

live

$ mildom-dl -u https://www.mildom.com/10038177 -o out.mp4

or

from mildom_dl.mildomDL import MildomDL

mdl = MildomDL(url="https://www.mildom.com/playback/10738086?v_id=10738086-1598025891")
mdl.download("test.mp4")

切り抜いて保存(not working)

args : -s : start(seconds) -e : end (seconds)

$ mildom-dl -u https://www.mildom.com/playback/10738086?v_id=10738086-1598025891 -s 30 -e 530 -o out.mp4

or

...
mdl.download("test.mp4",start=30,end=530)

args

-u URL
-o output filename

-s start time (seconds)
-e end time (seconds)

mildom_dl's People

Contributors

hirossan4049 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

bamobro

mildom_dl's Issues

mildom-dl is not recognized

Hello,

I've been trying to install the mildom_dl repository and have been able to troubleshoot it myself for the most part. But I've hit a roadblock where when I try to download the video in the example I get the following error. I tried running both the link in question and changing it to the link it gets redirected to now, but neither worked.

CMD

m3u8を返してくれるURLを見つけた。

REQUESTS

GET /nonolive/videocontent/playback/getPlaybackDetail?v_id=10191636-1603368175&timestamp=2020-10-22T13:33:35.563Z&__guest_id=pc-gp-c0d9b9e3-6b7a-40b5-9c9c-c4e4c03af63f&__location=Japan&__country=Japan&__cluster=aws_japan&__platform=web&__la=ja&__pcv=4.20.2&sfr=pc&accessToken= HTTP/1.1
Host: cloudac.mildom.com
Connection: close
Accept: application/json, text/plain, */*
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
Origin: https://www.mildom.com
Sec-Fetch-Site: same-site
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://www.mildom.com/
Accept-Encoding: gzip, deflate
Accept-Language: ja,en-US;q=0.9,en;q=0.8
Cookie: _ga=GA1.1.82660264.1603373615; _ga_CCCSCZLLXV=GS1.1.1603373614.1.0.1603373614.0; gid=pc-gp-c0d9b9e3-6b7a-40b5-9c9c-c4e4c03af63f; token=1603373615520477817-7e7765e1-a22b-4d7a-b117-426660560be5; sid=nl-b7da2614-756a-4f07-b143-380313f939fd

RESPONSE

HTTP/1.1 200 OK
Date: Thu, 22 Oct 2020 13:33:35 GMT
Content-Type: application/json
Content-Length: 1531
Connection: close
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: https://www.mildom.com

{"code":0,"body":{"playback":{"v_id":"10191636-1603368175","user_id":10191636,"author_info":{"user_id":10191636,"login_name":"itoenmaccya","pic":"https://vpic.mildom.com/download/file/jp/mildom/nnphotos/65c7bf26f7439dd044a6e72d23b69235.png","fans":1,"level":10,"show_follow_status":1,"follow_status":0},"country":"Japan","live_id":"10191636-1603368175","publish_time":1603368175000,"audio_url":"https://d3ooprpqd2179o.cloudfront.net/vod/jp/10191636/10191636-1603368175/origin/audio/10191636-1603368175_audio.m3u8","audio_length":1350932,"video_link":[{"name":"540p","level":540,"definition":"540p","url":"https://d3ooprpqd2179o.cloudfront.net/vod/jp/10191636/10191636-1603368175/origin/540p/10191636-1603368175_540p.m3u8","video_length":1350332},{"name":"720p","level":720,"definition":"720p","url":"https://d3ooprpqd2179o.cloudfront.net/vod/jp/10191636/10191636-1603368175/origin/raw/10191636-1603368175_raw.m3u8","video_length":1350949}],"video_pic":"https://vpic.mildom.com/download/file/jp/mildom/imgs/94f850d3bbf5503d36a65e10b60e8837.png","title":"爪痕ダブハン目指してカジュアル","video_intro":"ほしいなあ","view_num":1,"status":4,"video_length":1350332,"video_width":0,"video_height":0,"game_key":"Apex_Legends","game_info":{"game_name":"APEX Legends(PC\u0026Console)","game_type":"pc"},"hide_status":0,"upload_pic":"https://vpic.mildom.com/download/file/jp/mildom/imgs/94f850d3bbf5503d36a65e10b60e8837.png","live_type":2,"live_subtype":2,"live_mode":1,"os_platform":"pc","channels":["APEX","all_game"]}}}

Are there any dependencies to use this application?

When I try to download archives from mildom, it gives me this error code.

Traceback (most recent call last):
File "c:\python39\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Python39\Scripts\mildom-dl.exe_main
.py", line 4, in
File "c:\python39\lib\site-packages\mildom_dl\command.py", line 4, in
from mildom_dl.mildomDL import MildomDL
File "c:\python39\lib\site-packages\mildom_dl\mildomDL.py", line 3, in
import animation
ModuleNotFoundError: No module named 'animation'

What is that 'animation' module and how should I fix this?

Thanks.
(Update: tqdm and ffmpeg-python is confirmed to be installed, yet the same error occured.)

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.