Simyan
v1.4.0
漫画API的Python包装纸。
pip install --user Simyan from simyan . comicvine import Comicvine
from simyan . sqlite_cache import SQLiteCache
session = Comicvine ( api_key = "Comicvine API Key" , cache = SQLiteCache ())
# Search for Publisher
results = session . list_publishers ( params = { "filter" : "name:DC Comics" })
for publisher in results :
print ( f" { publisher . id } | { publisher . name } - { publisher . site_url } " )
# Get details for a Volume
result = session . get_volume ( volume_id = 26266 )
print ( result . summary )请使用GitHub问题跟踪器提交错误或请求功能。
COMICVINE__API_KEY设置为漫画API密钥。响应将在没有密钥的情况下缓存在tests/cache.sqlite 。