Files
aigc-home/docs/hel-892/animate2-loop-document-evidence/registry-a2loop.py.txt
T

9 lines
504 B
Plaintext

import urllib.request,json
from pathlib import Path
F=Path('docs/hel-892/animate2-loop-reference')
for name in ['comfyui-videohelpersuite','comfyui-custom-scripts','comfyui-easy-use','comfyui-kjnodes','comfy-core']:
try:
with urllib.request.urlopen('https://api.comfy.org/nodes/'+name,timeout=20)as r:b=r.read()
(F/('registry-'+name+'.json')).write_bytes(b);print(name,json.loads(b).get('repository'))
except Exception as e:(F/('registry-'+name+'-error.txt')).write_text(str(e));print(name,str(e))