Published
Edited
Nov 3, 2020
Insert cell
md`# prefixes - asn`
Insert cell
baseUrl = 'https://stat.ripe.net/data/rpki-validation/data.json?resource='
Insert cell
comboOne = ({"cprefixes":[{"prefix":"212.22.90.0/24","rpki":"1","vroas":[]},{"prefix":"212.22.94.0/24","rpki":"1","vroas":[]},{"prefix":"212.22.88.0/24","rpki":"1","vroas":[]},{"prefix":"212.22.89.0/24","rpki":"1","vroas":[]},{"prefix":"212.22.65.0/24","rpki":"1","vroas":[]}],"asn":"8888"})
Insert cell
ps = comboOne.cprefixes.map(p => fetch(`${baseUrl}${comboOne.asn}&prefix=${p.prefix}`, { mode: 'cors' }))
Insert cell
reqs = await Promise.all(ps).then(j => j.map(k => k.json()));
Insert cell
json2 = await Promise.all(reqs);
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more