Export all of the japan characters in the html file into a text file
const fs = require('fs'); const path = require('path'); const html = fs.readFileSync(path.join(__dirname, 'japan.html'), 'utf8'); const puppeteer = require('puppeteer'); const cheerio = require('cheerio'); const $ = cheerio.load(html); const japanCharCodes = [0x3040, 0x3097]; const japanChars = []; japanCharCodes.forEach(japanCharCode => { for (let i = 0; i < 96; i++) { japanChars.push(String.fromCodePoint(japanCharCode + i)); } }); const browser = await puppeteer.launch({ headless: false, }); const page = await browser.newPage(); await page.goto('http://www.rikai.com/library/kanjitables/kanji_codes.unicode.shtml'); await page.on('console', async msg => {