Encryption Module
Project description
niconico_dl
ニコニコ動画にある動画をダウンロードするためのPython用のライブラリです。
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.2.tar.gz
(8.8 kB
view hashes)
Built Distribution
Close
Hashes for niconico_dl-2.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c20303d583054f65d0e4098936333e8c8f68f4be338c910c7ce528159c5fe182 |
|
MD5 | 77524fcb8cb05022b37d11c67f549964 |
|
BLAKE2b-256 | 6cbf2cd2ac4d485ff7e30f5468b6d12dcbbe1425586e773747132360121d6f49 |