ニコニコ動画ダウンローダー NicoNico Video Downloader
Project description
niconico_dl
ニコニコ動画にある動画をダウンロードするためのPython用のライブラリです。
リファレンス:https://tasuren.github.io/niconico_dl/
Install
pip install niconico_dl
Examples
Normal
url = "https://www.nicovideo.jp/watch/sm38533566"
with niconico_dl.NicoNicoVideo(url, log=True) as nico:
data = nico.get_info()
nico.download(data["video"]["title"] + ".mp4")
print("Downloaded!")
Async
async def start_async():
url = "https://www.nicovideo.jp/watch/sm9664372"
async with niconico_dl.NicoNicoVideoAsync(url, log=True) as nico:
data = await nico.get_info()
await nico.download(data["video"]["title"] + ".mp4")
print("Downloaded!")
asyncio.run(start_async())
Command Line
使用方法:niconico_dl [URL]
ダウンロードした動画はoutput.mp4
という名前で実行したディレクトリに保存されます。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
niconico_dl-2.1.3.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for niconico_dl-2.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78b05e9ee4e36a6ce9d5bac09d8f822ddc61a9db219a8b0688f426a475b8f029 |
|
MD5 | 110880c7dfb0a2eda7cc2b5531ec8cb2 |
|
BLAKE2b-256 | 32d9abc041169706338b7b07feadba5a2ec4943148624457274f7d47c3871e3b |