ニコニコ動画ダウンローダー NicoNico Video Downloader
Project description
niconico_dl
ニコニコ動画にある動画をダウンロードするためのPython用のライブラリです。
リファレンス:https://tasuren.github.io/niconico_dl/
Github:https://github.com/tasuren/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.2.4.tar.gz
(9.4 kB
view hashes)
Built Distribution
Close
Hashes for niconico_dl-2.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dad8f659d950d324ad9ed3fbdb0f0fdbed4443ba779a25c48ceb2af4eafa636 |
|
MD5 | 6b39a54fba23d56506b75b758e68b6e1 |
|
BLAKE2b-256 | 23bdc623c490d5a008bf1766031eb6a457dd7107679bc1424f91bbb08a7df381 |