<commit_before><commit_msg>posts: create puppeteer.md<commit_after>---
title: puppeteer调研
tags:
  - front-end
  - testing
date: 2018-07-10 22:37:18
---

## Puppeteer Intro

Puppeteer金字塔

!["Puppeteer Pyramid"](http://sinacloud.net/woodysblog/img/puppeteer-pyramid.png)

无需再通过Chrome的开发协议，写冗长复杂的代码，轻松调用Chrome API。

!["puppeteer-devtools-protocol"](http://sinacloud.net/woodysblog/img/puppeteer-devtools-protocol.png)

Puppeteer的使用场景。

!["Puppeteer use case"](http://sinacloud.net/woodysblog/img/puppeteer-use-cases.png)

Youtube Video - ["Puppeteer - Chrome Dev Summit 2017"](https://youtu.be/7-XnEMrQnn4?t=986)
{'fraction_non_alphanumeric': 0.16091954022988506, 'fraction_numerical': 0.03776683087027915, 'mean_word_length': 5.421052631578948, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4595539', 'n_tokens_mistral': 297, 'n_tokens_neox': 293, 'n_words': 30}