DLsite Async
Project description
DLsite Async
Features
- Async DLsite API for fetching work metadata
- Supports most DLsite sites:
- Comipo (
comic
) - Doujin (All-ages/
home
, Adult/maniax
) - Adult comics (
books
) - All-ages games (
soft
) - Galge (
pro
) - Apps (
appx
)
- Comipo (
- Supports common metadata for most DLsite work types
- Japanese and English locale support (English metadata may not be available for all works)
Requirements
- Python 3.9+
Installation
You can install DLsite Async via pip from PyPI:
$ pip install dlsite-async
Usage examples
Fetch manga information:
>>> import asyncio
>>> from dlsite_async import DlsiteAPI
>>> async def f():
... async with DlsiteAPI() as api:
... return await api.get_work("BJ370220")
...
>>> asyncio.run(f())
Work(
product_id='BJ370220',
site_id='comic',
maker_id='BG01675',
work_name='衛宮さんちの今 日のごはん (6)\u3000レシピ本付特装版',
age_category=<AgeCategory.ALL_AGES: 1>,
circle=None,
brand=None,
publisher='KADOKAWA',
work_image='//img.dlsite.jp/.../BJ370220_img_main.jpg',
regist_date=datetime.datetime(2021, 10, 28, 0, 0),
work_type=<WorkType.MANGA: 'MNG'>,
book_type=<BookType.BOOK: 'comic'>,
...
author=['TAa', '只野まこと', 'TYPE−MOON'],
...
genre=['少年コミック', 'ギャグ', 'コメディ', 'ほのぼの'],
label='KADOKAWA',
...
page_count=307
)
Fetch English voice/ASMR information:
>>> async def f():
... async with DlsiteAPI(locale="en_US") as api:
... return await api.get_work("RJ294126")
...
>>> asyncio.run(f())
Work(
product_id='RJ294126',
site_id='maniax',
maker_id='RG51931',
work_name='Pure Pussy on Duty',
age_category=<AgeCategory.R18: 3>,
circle='aoharu fetishism',
brand=None,
publisher=None,
work_image='//img.dlsite.jp/.../RJ294126_img_main.jpg',
regist_date=datetime.datetime(2020, 8, 30, 0, 0),
work_type=<WorkType.VOICE_ASMR: 'SOU'>,
...
illustration=['ぬこぷし'],
voice_actor=['逢坂成美'],
...
genre=['Healing', 'Dirty Talk', 'Binaural', 'ASMR', ...],
...
file_format=['WAV'],
file_size='Total 010.63GB',
...
)
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Distributed under the terms of the MIT license, DLsite Async is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Credits
This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dlsite-async-0.1.0.tar.gz
(14.1 kB
view hashes)
Built Distribution
Close
Hashes for dlsite_async-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8857e27bf9b4149098560f77ab78a5ee00d53b44f0abeb8e43c4c4b83cee42c0 |
|
MD5 | 0e49206eaed615ddb595b8170c93aee7 |
|
BLAKE2b-256 | 0996b7a536223008e0387e6445651ea2302fbd3b5e0246729e30312f72f76b83 |