Как то так?
const puppeteer = require('puppeteer');
(async function main() {
try {
const browser = await puppeteer.launch();
const [page] = await browser.pages();
await page.goto('https://www.ochealthinfo.com/phs/about/epidasmt/epi/dip/prevention/novel_coronavirus');
const data = await page.evaluate(() => {
const table = document.querySelector('#col2 > div > table + table');
const rowsWithNumbers = [...table.rows].slice(3, 9);
const numbers = rowsWithNumbers.map(
row => [...row.cells].slice(1).map(cell => cell.innerText)
);
return numbers;
});
console.log(data);
await browser.close();
} catch (err) {
console.error(err);
}
})();
Результат:
[
['42', '26', '16', '0', '21', '13', '8'],
['22', '13', '9', '0', '10', '8', '4'],
['7', '6', '1', '0', '5', '2', '0'],
['12', '7', '5', '0', '5', '3', '4'],
['1', '0', '1', '0', '1', '0', '0'],
['0', '0', '0', '0', '0', '0', '0']
]