puppeteer-examples

Use case-driven examples for using Puppeteer and headless chrome

Github星跟踪图

Useful Puppeteer demos!

Examples for using Puppeteer to do big, bold things.

Output from some of the examples:

code_coverage.js

Test lazy loading strategy by seeing CSS/JS code coverage usage across page load.

verify_sw_caching.js

Verify all the resources you expect are being cached by a service worker for offline.

google_search_features.js

Gut check your page to make sure it renders correctly for Google Search.

lazyimages_without_scroll_events.js

Determine if your lazy loaded images will be seen correctly by Google Search.

speech.js

Make your browser talk.

pacman.js

Play the Google Pac-Man Doodle.

element-to-pdf.js

Turn a DOM element into a PDF.

crawlsite.js

Discover all the URLs on a site and visualize the subpages.

side-by-side-pageload.js

Load 2 or more pages side-by-side to visually see the difference in page load. Optional desktop viewport and throttling settings.

License

Apache 2.0 © 2018 Google Inc.

主要指标

概览
名称与所有者puppeteer/examples
主编程语言JavaScript
编程语言JavaScript (语言数: 2)
平台
许可证Apache License 2.0
所有者活动
创建于2018-02-28 17:14:15
推送于2025-03-28 22:50:43
最后一次提交2018-12-18 12:38:20
发布数0
用户参与
星数2.4k
关注者数84
派生数305
提交数106
已启用问题?
问题数23
打开的问题数18
拉请求数6
打开的拉请求数20
关闭的拉请求数13
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?