Базовый handlebars
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-02-18 02:47:00 +03:00
parent 425843c5ad
commit 1c7d4cc74e
11 changed files with 189 additions and 42 deletions

View File

@@ -12,7 +12,8 @@ async function initPuppeteer (page) {
}
(async () => {
const browser = await puppeteer.launch({ executablePath: 'chromium-browser' })
// const browser = await puppeteer.launch({ executablePath: 'chromium-browser' })
const browser = await puppeteer.launch()
const page = await browser.newPage()
await initPuppeteer(page)
@@ -26,11 +27,10 @@ async function initPuppeteer (page) {
const setPrice = await item.set.getPrice(page)
if (partsPrice < setPrice) {
output.addLine(`${item.name} prime: ${partsPrice}/${setPrice} выгода ${setPrice - partsPrice}`)
output.addItem(item.name, partsPrice, setPrice)
}
}
await browser.close()
output.timestamp()
output.submit()
})()