ニコニコ動画ダウンローダー 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.4.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for niconico_dl-2.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95c68bcd09b2f5fdef40cf543102388bd6302ecc70c7626b134d69e7b70a00bc |
|
MD5 | f53153b10d6e9ae188fe29b47fda2d13 |
|
BLAKE2b-256 | 3a10b57947983a8255dfc35f0532c4cd12ffcd1e1d7e761fbd027262c37ae84b |