chore: vollständiger Workspace-Snapshot 03.07.2026
- publish_gatekeeper.py (neues Gatekeeper-System) - 4 Premium-Artikel: Veggie Match, Berlin 1960, Wild Tiled West, Scream Park - Alle kumulierten Artikel, Scripts, Medien und Caches
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#!/home/hermes/venv/bin/python3
|
||||
"""Debug Lacrimosa Amazon CreatorAPI response"""
|
||||
from amazon_creatorsapi import AmazonCreatorsApi
|
||||
import json
|
||||
|
||||
api = AmazonCreatorsApi(
|
||||
credential_id='amzn1.application-oa2-client.91799968d0744e66950ea413659197d4',
|
||||
credential_secret='amzn1.oa2-cs.v1.4c41154ecfd1835e00879ad5c8060ef5cd3b209b06077c0af1d868b343cab955',
|
||||
version='3.2', tag='60pro05-21', marketplace='www.amazon.de', throttling=1.0
|
||||
)
|
||||
|
||||
try:
|
||||
result = api.search_items(keywords='B0C7RKGFYX', item_count=1, resources=['images.primary.large', 'itemInfo.title', 'offersV2.listings.price'])
|
||||
d = result.model_dump()
|
||||
item = d['items'][0]
|
||||
# Print top-level keys
|
||||
print("TOP KEYS:", list(item.keys()))
|
||||
for k in item:
|
||||
if k == 'images':
|
||||
print("IMAGES structure:", json.dumps(item[k], indent=2)[:500])
|
||||
elif k == 'itemInfo':
|
||||
print("ITEMINFO:", json.dumps(item[k], indent=2)[:500])
|
||||
elif k == 'offersV2':
|
||||
print("OFFERS:", json.dumps(item[k], indent=2)[:500])
|
||||
else:
|
||||
print(f"{k}: {json.dumps(item[k])[:200]}")
|
||||
except Exception as e:
|
||||
print(f"ERROR: {e}")
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
Reference in New Issue
Block a user