Published
Edited
Oct 2, 2022
Importers
1 star
Insert cell
Insert cell
Insert cell
Insert cell
// for updating cache
html`<pre>${JSON.stringify(list)}`
Insert cell
list = {
const rows = listPage
.querySelector("#Editions_overview")
.parentElement.nextElementSibling.nextElementSibling.nextElementSibling.querySelectorAll(
"tr"
);
return Array.from(rows)
.slice(1)
.map((row) => ({
name: row.children[0].innerText.replace(/\s/g, " "),
code: row.children[3].textContent
}))
.filter(
({ name }) =>
!name.includes("(closed)") &&
!name.includes("(deleted)") &&
!name.includes("(locked)")
);
}
Insert cell
viewof listPage = fetchPage('List_of_Wikipedias')
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more