import json, urllib.request, concurrent.futures, sys
start=int(sys.argv[1]); end=int(sys.argv[2])
def get(i):
    try:
        r=urllib.request.Request(f"https://economy.roblox.com/v2/assets/{i}/details", headers={"User-Agent":"Mozilla/5.0"})
        d=json.load(urllib.request.urlopen(r, timeout=10))
        n=d.get("Name") or ""
        c=(d.get("Creator") or {}).get("Name") or ""
        return (i,n,c)
    except Exception as e:
        return (i,None,type(e).__name__)
hits=[]
with concurrent.futures.ThreadPoolExecutor(max_workers=12) as ex:
    for i,n,c in ex.map(get, range(start,end)):
        if n and "baseline" in n.lower(): hits.append((i,n))
for i,n in hits: print(i,n)
print("total icons:",len(hits),"of",end-start)
