Skip to main content

PyPI PyPI - Downloads

niconico_dl

ニコニコ動画にある動画をダウンロードするためのPython用のライブラリです。

警告!
このniconico_dlは開発が停止して、アップデートもこれからありません。
代わりにこちらを使用してください。

リファレンス: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という名前で実行したディレクトリに保存されます。

Notes

もしDiscordのボイスチャットにニコニコ動画を流したい人はNicoNicoVideoAsync.downloadではなくNicoNicoVideoAsync.get_download_linkを使用して取得したダウンロードリンクで流すことを推奨します。
downloadは動画をダウンロードするため時間がかかります。 なのでget_download_linkでダウンロードリンクを取得してそれを使い直接流すのを推奨します。
注意:closeをお忘れなく、詳細はリファレンスを見てください。

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.8.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

niconico_dl-2.2.8-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file niconico_dl-2.2.8.tar.gz.

File metadata

  • Download URL: niconico_dl-2.2.8.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for niconico_dl-2.2.8.tar.gz
Algorithm Hash digest
SHA256 15845bae0d8baecce68ca8a0c2b3afcd16f27b39f9d791415f721858b35e6c9d
MD5 9218ac3d9b189fa141136a18fed3adb8
BLAKE2b-256 302e8874184b21984eb01b162b26ee99cbce86df2e18d3e8b7b67b3e71e0d9fe

See more details on using hashes here.

File details

Details for the file niconico_dl-2.2.8-py3-none-any.whl.

File metadata

  • Download URL: niconico_dl-2.2.8-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for niconico_dl-2.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 80540fdea548ab7d67cc54b39487de27e6b0e5330564a6c5d4f770bd54e43b3f
MD5 40303f157bd7c062218bcd5f9e93c9a2
BLAKE2b-256 a87ec789e085927ddb2ac77da6d0a72ce574b5bb7f85a05b8050427b23fe7720

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.2.8 This release

2 files

2.2.7

1 file

2.2.6

1 file

2.2.5

1 file

2.2.4

2 files

2.1.4

2 files

2.1.3

2 files

2.1.2

2 files

1.1.2

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page