Platform
Resources
Pricing
Sign in
Get started
Charles Redmond
Workspace
Fork
Published
Fall21IntroDS2
By
Charles Redmond
Edited
Oct 6, 2021
Fork of
Cheerio Template
Insert cell
Insert cell
<
table
>
<
thead
>
<
tr
>
<
th
>
Name
</
th
>
<
th
>
Identity
</
th
>
<
th
>
Universe
</
th
>
</
tr
>
</
thead
>
<
tbody
>
<
tr
>
<
td
>
Batman
</
td
>
<
td
>
Bruce Wayne
</
td
>
<
td
>
DC
</
td
>
</
tr
>
<
tr
>
<
td
>
Hulk
</
td
>
<
td
>
Bruce Banner
</
td
>
<
td
>
Marvel
</
td
>
</
tr
>
<
tr
>
<
td
>
Iron Man
</
td
>
<
td
>
Tony Stark
</
td
>
<
td
>
Marvel
</
td
>
</
tr
>
</
tbody
>
</
table
>
Insert cell
Insert cell
{
const
$
=
cheerio
.
load
(
page
)
const
rows
=
$
(
"tr"
)
const
row
=
rows
.
eq
(
2
)
const
cells
=
row
.
find
(
"td"
)
const
result
=
[
]
for
(
let
i
=
0
;
i
<
3
;
i
=
i
+
1
)
{
const
cell
=
cells
.
eq
(
i
)
const
text
=
cell
.
text
(
)
result
.
push
(
text
)
}
return
result
}
Insert cell
{
const
$
=
cheerio
.
load
(
page
)
const
rows
=
$
(
"tr"
)
const
result
=
[
]
for
(
let
i
=
1
;
i
<
4
;
i
=
i
+
1
)
{
const
row
=
rows
.
eq
(
i
)
const
cells
=
row
.
find
(
"td"
)
const
cell
=
cells
.
eq
(
1
)
const
text
=
cell
.
text
(
)
result
.
push
(
text
)
}
return
result
}
Insert cell
Insert cell
cheerio
=
require
(
'https://bundle.run/cheerio@1.0.0-rc.2'
)
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.
Try it for free
Learn more
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
page
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
cheerio
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML