Advertisement
rgruber

asrank-edges

Jul 1st, 2022
872
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.37 KB | None
  1. var a=[],u=new Set(),asn; document.body.innerHTML="";var pre=document.body.appendChild(document.createElement("pre"));
  2. a.push(1901);
  3. while ((asn=a.shift())) {
  4. var r=await fetch("/p/rstats.php?u&q=aslinks:"+asn);var d=await r.json();
  5. for (var n of d.edges) {var asn1= n.node.asn1.asn; if (!u.has(asn1)){u.add(asn1);a.push(asn1);}}
  6.     pre.innerText=JSON.stringify(d,null,2);
  7. }
Advertisement
RAW Paste Data Copied
Advertisement