xcolle-api
A Python library providing an asynchronous API interface for pcolle.com / gcolle.net.
Installation
You can install using uv:
uv tool install xcolle_api
Data Model
The objects returned by the API are dataclasses, with 2 convenience methods:
as_dict: Same asdataclasses.asdictas_json: Returns a JSON string representation of the object
Quick Start
Basic example on how to use it:
import asyncio
from pathlib import Path
from xcolle_api import PcolleAPI
async def fetch_product(product_id: str) -> None:
async with PcolleAPI() as api:
product = await api.product(product_id)
print(product.as_dict())
Path(f"product_{product_id}.json").write_text(product.as_json())
if __name__ == "__main__":
asyncio.run(fetch_product("197240637f2aa245ecf"))
Output
{
"id": "197240637f2aa245ecf",
"file_name": "p902.mp4",
"file_size": "238.11 MB",
"file_size_bytes": 249676431,
"ratings": 3,
"views": 7208,
"price": 920,
"title": "あの同僚さんがついにパンティまでも・・・固定カメラ版",
"sales_start_date": "2022-11-24 00:00:00+00:00",
"seller_id": "5975951e350bdd97",
"thumbnail": "https://img.pcolle.com/5975951e350bdd97/197240637f2aa245ecf/132828_300x225.jpg",
"url": "https://www.pcolle.com/product/detail/?product_id=197240637f2aa245ecf",
"category": {
"id": 5,
"name": "店員・OL・働く女性"
},
"contains": [],
"set": "197243637f2c0257993",
"additional_info": [
"セット商品として購入できます"
],
"description": "商品説...",
"description_html": "<p class=\"title-item title-05\">商品説明</p>...",
"previews": [
"https://img.pcolle.com/5975951e350bdd97/197240637f2aa245ecf/132828_1.jpg",
"https://img.pcolle.com/5975951e350bdd97/197240637f2aa245ecf/132828_2.jpg",
"https://img.pcolle.com/5975951e350bdd97/197240637f2aa245ecf/132828_3.jpg",
"https://img.pcolle.com/5975951e350bdd97/197240637f2aa245ecf/132828_4.jpg",
"https://img.pcolle.com/5975951e350bdd97/197240637f2aa245ecf/132828_5.jpg",
"https://img.pcolle.com/5975951e350bdd97/197240637f2aa245ecf/174045_ab6.jpg"
],
"tags": [
{
"id": 125,
"name": "パンチラ"
},
{
"id": 18,
"name": "胸チラ"
},
{
"id": 32,
"name": "OL"
},
{
"id": 47,
"name": "アイドル風"
},
{
"id": 74,
"name": "生足"
},
{
"id": 75,
"name": "スカートめくり"
},
{
"id": 86,
"name": "カメラ目線"
},
{
"id": 99,
"name": "美尻"
},
{
"id": 109,
"name": "開脚"
}
],
"manage_id": "5975951e350bdd97",
"bonus": null
}
Metadata
Release files for xcolle-api 0.1.4
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 |
|---|---|---|---|---|
| xcolle_api-0.1.4.tar.gz | 14.9 kB | Without provenance | Details for xcolle_api-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xcolle_api-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for xcolle_api-0.1.4-py3-none-any.whl |
Total release size: 34.1 kB
Release files / xcolle_api-0.1.4.tar.gz
| Download URL | xcolle_api-0.1.4.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03cbf0855a528c4641e16bfc5b5699b68e9336c4e6b89fa1430bc80b6019bce2
|
|
BLAKE2b-256 checksum How to use checksums |
248a56b6c50559f6fd3c13d2224724073ab901b6338a4ead60ba3a57ba74b999
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|
Release files / xcolle_api-0.1.4-py3-none-any.whl
| Download URL | xcolle_api-0.1.4-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
682c978b9c22096600a52085d4b91d4239b3eb308d6337d318b9500d470ca537
|
|
BLAKE2b-256 checksum How to use checksums |
e0309e0755b063e22cac1aab722695c9ddc12dc538b982ae2afe598832c9ef5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|
Security for xcolle-api 0.1.4
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.