Standard js

This commit is contained in:
2022-02-15 22:27:06 +03:00
parent 58530bf433
commit efafcbc356
9 changed files with 3676 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
module.exports = async function(page, url) {
await page.goto(url);
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);
const value = await element.evaluate(el => el.textContent)
return Number(value)
}