This is a small wrapper of the civitai.com API
pip install civitai
from civitai import creators
result = creators.get(query="Lykon")
N = result.totalItems
creator = result.items[0]
creator.username # Lykon
creator.modelCount # 212
from civitai import images
# https://civitai.com/posts/442123
result = images.get(postId=442123)
image = result.items[0]
image.url
image.likeCount
image.dislikeCount
from civitai import models
# https://civitai.com/models/4384/dreamshaper?modelVersionId=128713
model = models.get_model(modelId=4384)
modelVersion = models.get_by_modelVersion(modelVersionId=128713)
model.name # DreamShaper
modelVersion.name # 8
from civitai import tags
result = tags.get(query="realism")
tag = result.items[0]
result.totalItems # 4
tag.modelCount # 383