介绍
puppeteer是一个Nodejs的库,支持调用Chrome的API来操纵Web,相比较Selenium或是PhantomJs,它最大的特点就是它的操作Dom可以完全在内存中进行模拟既在V8引擎中处理而不打开浏览器,而且关键是这个是Chrome团队在维护,会拥有更好的兼容性和前景。
nodejs puppeteer库 https://github.com/GoogleChrome/puppeteer
安装:npm i puppeteer
python 对 puppeteer的支持库 pyppeteer https://github.com/miyakogi/pyppeteer
https://pypi.org/project/pyppeteer/
pip install pyppeteer
rust 对puppeteer的支持库 https://github.com/atroche/rust-headless-chrome