RepositoryJavaScript
puppeteer

puppeteer/examples

Use case-driven examples for using Puppeteer and headless chrome

2.4ksao
306fork
18issue
5lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: browser-testing

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: demos

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: browser-tools

#1 Repository của tháng

🧪 Ví dụ thực chiến với Puppeteer và Chrome headless

Từ kiểm tra SEO đến mở trò chơi, hàng chục demo thực tế cho thấy Puppeteer có thể làm gì.

Dự án puppeteer/examples là kho tập hợp hơn 15 ví dụ mã nguồn mở minh họa cách dùng Puppeteer — thư viện Node.js điều khiển Chrome/Chromium headless — để giải quyết các tác vụ thực tế như kiểm thử, thu thập dữ liệu, tối ưu hiệu năng và tương tác với trang web.

Mỗi file .js trong thư mục này là một use case cụ thể, kèm hình ảnh minh họa kết quả thực thi.

✨ Điểm nổi bật

  • code_coverage.js: Đo lường CSS/JS thực sự được sử dụng khi tải trang để tối ưu bundle.
  • verify_sw_caching.js: Kiểm tra service worker đã cache đúng tài nguyên cho offline chưa.
  • google_search_features.js: Kiểm tra trang có render đúng cho Google Search chưa.
  • lazyimages_without_scroll_events.js: Đảm bảo ảnh lazy-load hiển thị đúng cho Google.
  • element-to-pdf.js: Chuyển một phần tử DOM thành file PDF.
  • crawlsite.js: Dò tìm toàn bộ URL trên một trang hoặc SPA.
  • side-by-side-pageload.js: So sánh thời gian tải trang giữa nhiều phiên bản.
  • speech.js & pacman.js: Trình diễn khả năng tương tác phức tạp với trình duyệt.

💡 Vì sao đáng chú ý

Không chỉ là tài liệu hướng dẫn, đây là danh sách các ví dụ có thể chạy ngay để học hoặc tù biến. Phù hợp cho team cần nhanh tay áp dụng Puppeteer vào workflow kiểm thử, giám sát SEO, hoặc tự động hóa thu thập dữ liệu mà không cần viết lại từ đầu.


#Puppeteer #ChromeHeadless #WebAutomation #BrowserTesting #NodeJS #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026
RepositoryTypeScript
apify/crawlee

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

26.6k
Dec 2, 2026
RepositoryPython
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

162.3k
Dec 2, 2026
RepositoryPython
Panniantong/Agent-Reach

Give your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.

116.7k
Nov 24, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryPython
microsoft/markitdown

Python tool for converting files and office documents to Markdown.

199.5k
Dec 2, 2026
RepositoryTypeScript
microsoft/vscode

Visual Studio Code

195.9k
Nov 30, 2026
RepositoryShell
ohmyzsh/ohmyzsh

🙃 A delightful, community-driven framework for managing your zsh configuration. Built by 2,600+ contributors, with hundreds of plugins (git, rails, laravel, node, python, docker, kubectl, aws, and more), themes to spice up your terminal, and automatic updates to keep your command line feeling like home.

191.0k
Nov 29, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Oct 31, 2026