open:puppeteer

puppeteer

Evaluation failed: DOMException: Failed to execute 'evaluate' on 'Document': The string 'button[contains(@class, “lv-category__load-more)]' is not a valid XPath expression.



## source

- playwright
- https://velog.io/@jinuku/Puppeteer%EB%A5%BC-%EC%9D%B4%EC%9A%A9%ED%95%9C-%EC%9B%B9-%ED%81%AC%EB%A1%A4%EB%A7%81-%ED%95%B4%EB%B3%B4%EA%B8%B0-%EC%98%88%EC%A0%9C-1
- https://www.digitalocean.com/community/tutorials/how-to-scrape-a-website-using-node-js-and-puppeteer
- https://dev.to/sonyarianto/practical-puppeteer-how-to-use-waitforxpath-and-evaluate-xpath-expression-15cp
- https://www.lewuathe.com/simple-crawling-with-puppeteer-in-typescript.html
- https://yangeok.github.io/node.js/2019/09/11/puppeteer-crawler-scroll.html

- forever-monitor: https://www.npmjs.com/package/forever-monitor

- DeviceDescriptors

## eval

<code>
const heading1 = await page.$eval(“body > div > div > h1”, el ⇒ el.textContent);
console.log(heading1)
</code>



## 관련 문서

  • open/puppeteer.txt
  • 마지막으로 수정됨: 2021/06/17 01:54
  • 저자 127.0.0.1