Published
Edited
Oct 18, 2019
3 stars
Wikipedia API
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// show selected section as html
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// get sections with API using &prop=sections
Insert cell
Insert cell
// parsing
Insert cell
Insert cell
Insert cell
Insert cell
// find tables if they exist using parser result node
Insert cell
Insert cell
// find unordered lists if they exist
Insert cell
Insert cell
// first list element if it exists and innerHTML
Insert cell
Insert cell
Insert cell
// list elements for first unordered list (if it exists)
Insert cell
Insert cell
// first list element for first unordered list and innerHTML
Insert cell
Insert cell
Insert cell
// list elements in first unordered list
Insert cell
Insert cell
// display first unordered list
Insert cell
Insert cell
// find paragraphs if the exists
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// Array.from(rows, r => r.querySelector("td:nth-child(3)").textContent.trim())
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// wikipedia api property list
Insert cell
Insert cell
Insert cell
// display_data - format array for table display
Insert cell
Insert cell
Insert cell
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