Initial commit

This commit is contained in:
2022-02-15 22:07:56 +03:00
commit 58530bf433
8 changed files with 1114 additions and 0 deletions

6
getPrice.js Normal file
View File

@@ -0,0 +1,6 @@
module.exports = async function(page, url) {
await page.goto(url);
const element = await page.waitForSelector('b.price')
const value = await element.evaluate(el => el.textContent);
return Number(value)
}