nicoclient
A python client to interact with nicovideo.jp.
Installation
pip install nicoclient
Features
Get video metadata
metadata = nicoclient.get_video('sm34734479')
{
"id": "sm34734479",
"views": 3033,
"likes": 163,
"thumbnail_url": "http://tn.smilevideo.jp/smile?i=34734479.81262",
"title": "出来るだけ感情的に「ヘイトクライム」を歌いました。",
"uploader_id": "33765098",
"description": "最後まで聴いてもらえると嬉しいです。素晴らしい原曲 sm33841308MIX みけ mylist/58924781 https://twitter.com/rnike_san 歌 ててて mylist/41403147 https://twitter.com/tetete2525"
}
Get trending videos
videos = nicoclient.get_daily_trending_utattemita_videos()
for video in videos:
print(f"'{video['id']}' has {video['views']} views and {video['likes']} likes")
'sm34658459' has 40057 views and 1293 likes
'sm34248511' has 278194 views and 14274 likes
'sm34676260' has 96529 views and 6554 likes
...
Get videos in a playlist
playlist = nicoclient.get_playlist('58924781')
for video in playlist.videos:
print(f"'{video.id}' has {video.views} views and {video.likes} likes")
'sm29118726' has 1104 views and 28 likes
'sm29299741' has 837 views and 19 likes
'sm29816849' has 1476 views and 32 likes
...
Get related videos
Use case 1
If the video is a Vocaloid Original, then the function returns Utattemita videos.
related_videos = nicoclient.get_related_videos('sm32076378')
print('\n'.join([v['title'] for v in related_videos]))
"ドラマツルギー 歌ってみた【りぶ】",
"ドラマツルギー 歌ってみた【そらる】",
"【ウォルピス社】ドラマツルギーを歌ってみました【提供】",
"【浦島坂田船歌ってみたツアー】ドラマツルギー【うらたぬき】",
"【爽快に】ドラマツルギー 歌ってみた ver.Sou",
"『ドラマツルギー』を 歌ってみた。by天月",
...
Use case 2
If the video is NOT a Vocaloid Original, then the function returns other videos by the uploader.
related_videos = nicoclient.get_related_videos('sm32103696')
print('\n'.join([v['title'] for v in related_videos]))
"Marygold 歌ってみた【りぶ】",
"沙上の夢喰い少女 歌ってみた【りぶ】",
"BEAUTIFUL DREAMER 歌ってみた【りぶ】",
"夜と虹色 歌ってみた【りぶ】",
"Starduster 歌ってみた【りぶ】",
"ピエロ 歌ってみた【りぶ】",
...
Metadata
Release files for nicoclient 1.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nicoclient-1.1.9.tar.gz | 7.3 kB | Without provenance | Details for nicoclient-1.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nicoclient-1.1.9-py3-none-any.whl | Python 3 | none | any | Details for nicoclient-1.1.9-py3-none-any.whl |
Total release size: 16.7 kB
Release files / nicoclient-1.1.9.tar.gz
| Download URL | nicoclient-1.1.9.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f321165eb4a91c9673f1e41455910baeb5213af539a5759fb1a3e4b53204120a
|
|
BLAKE2b-256 checksum How to use checksums |
98fa7711362a3d6e81954b7caffd389848ccc521b9269799120841dfc04e3969
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / nicoclient-1.1.9-py3-none-any.whl
| Download URL | nicoclient-1.1.9-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b67869d47bfc70966ce7dbd46da260abc0df582ec102da8140c1e29ff69b689
|
|
BLAKE2b-256 checksum How to use checksums |
f81bf111e325d14b18911f6f26a72b3aa0034516143574d95c79c63ee9173688
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for nicoclient 1.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.