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 。