ニコニコ動画 スナップショット検索APIv2の Python クライアント
Project description
概要
ニコニコ動画 『スナップショット検索API v2』 などの API について、仕様をなるべく意識せずに利用できるクライアントを提供する。
install
PyPIリポジトリ: https://pypi.org/project/nicovideo-api-client/
pip install nicovideo-api-client
installed
documentation
sphinx-apidoc -f -e -o ./docs ./nicovideo_api_client
cd docs
make html
で docs/_build/html にファイルが生成される。
python3 -m http.server
などで適宜サーバーを立てて読むとよい。
example
from nicovideo_api_client.api.v2.snapshot_search_api_v2 import SnapshotSearchAPIV2
from nicovideo_api_client.constants import FieldType
json = SnapshotSearchAPIV2() \
.tags_exact() \
.query("VOCALOID") \
.field({FieldType.TITLE, FieldType.CONTENT_ID}) \
.sort(FieldType.VIEW_COUNTER) \
.simple_filter().filter() \
.limit(100) \
.request() \
.json()
利用規約
https://site.nicovideo.jp/search-api-docs/snapshot#api%E5%88%A9%E7%94%A8%E8%A6%8F%E7%B4%84
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
nicovideo_api_client-0.0.5.tar.gz
(10.0 kB
view hashes)
Built Distribution
Close
Hashes for nicovideo_api_client-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9dcd20955a36b9d46c31477f24428c0581fdb8bef8982a0a3008593d346a0d3 |
|
MD5 | bd11a5fa77eae3006b4abeb3c98c4bcc |
|
BLAKE2b-256 | 1499c5abfe516ae2eb5c6d4f32e52dc1caf4418a01d30d101250efd44baae952 |
Close
Hashes for nicovideo_api_client-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9005047adaa3c515e17aa495fa694b84a6f0dd3f0b1fde363e7630ff248e18b |
|
MD5 | 1116b1242c912eb381b84520f92a300a |
|
BLAKE2b-256 | 9a7382a4af471c477846413c15c237c8517d4ee41122584825470a6975337c52 |