内容简介:Puppeteer 是一个 Chrome 官方出品的 headless Chrome node 库。它提供了一系列的 API, 可以在无 UI 的情况下调用 Chrome 的功能, 适用于爬虫、自动化处理等各种场景。2.0 已经发布,内容有: Big changes Chromi...
Puppeteer 是一个 Chrome 官方出品的 headless Chrome node 库。它提供了一系列的 API, 可以在无 UI 的情况下调用 Chrome 的功能, 适用于爬虫、自动化处理等各种场景。2.0 已经发布,内容有:
Big changes
- Chromium 79.0.3942.0
- 现在支持 Node.js v8+,Node.js v6 不再受支持
- 新的 API:
API changes
- 新 API:
page.emulateTimezone(timezoneId) - 新 API:
page.emulateMediaType(type) - 新 API:
page.emulateMediaFeatures(features) - 移除 API:
page.emulateMedia(type)
详情见发布说明:
https://pptr.dev/#?product=Puppeteer&version=v2.0.0&show=api-release-notes
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
The Nature of Code
Daniel Shiffman / The Nature of Code / 2012-12-13 / GBP 19.95
How can we capture the unpredictable evolutionary and emergent properties of nature in software? How can understanding the mathematical principles behind our physical world help us to create digital w......一起来看看 《The Nature of Code》 这本书的介绍吧!