[civitai] fix '403 Forbidden' errors for searches

update Authorization header
This commit is contained in:
Mike Fährmann
2025-07-07 10:18:26 +02:00
parent 1aa8fe7c10
commit 8452a018ac

View File

@@ -592,7 +592,7 @@ class CivitaiTrpcAPI():
self.root = extractor.root + "/api/trpc/" self.root = extractor.root + "/api/trpc/"
self.headers = { self.headers = {
"content-type" : "application/json", "content-type" : "application/json",
"x-client-version": "5.0.701", "x-client-version": "5.0.882",
"x-client-date" : "", "x-client-date" : "",
"x-client" : "web", "x-client" : "web",
"x-fingerprint" : "undefined", "x-fingerprint" : "undefined",
@@ -795,8 +795,8 @@ class CivitaiSearchAPI():
self.extractor = extractor self.extractor = extractor
self.root = "https://search.civitai.com" self.root = "https://search.civitai.com"
self.headers = { self.headers = {
"Authorization": "Bearer 4c7745e54e872213201291ba1cae1aaca702941f2" "Authorization": "Bearer ab8565e5ab8dc2d8f0d4256d204781cb63fe8b031"
"91432cf4fef22803333e487", "eb3779cbbed38a7b5308e5c",
"Content-Type": "application/json", "Content-Type": "application/json",
"X-Meilisearch-Client": "Meilisearch instant-meilisearch (v0.13.5)" "X-Meilisearch-Client": "Meilisearch instant-meilisearch (v0.13.5)"
" ; Meilisearch JavaScript (v0.34.0)", " ; Meilisearch JavaScript (v0.34.0)",