RepositoryTypeScript
puppeteer

puppeteer/puppeteer

JavaScript API for Chrome and Firefox

95.9kstars
9.6kforks
163issues
9views

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ủ đề: firefox

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: headless-chrome

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: node-module

#1 Repository Của Tuần

🤖 Puppeteer: Điều khiển trình duyệt Chrome & Firefox bằng JavaScript

Puppeteer cung cấp API JavaScript bậc cao để điều khiển Chrome hoặc Firefox qua DevTools Protocol hoặc WebDriver BiDi, chạy ở chế độ headless (không giao diện) trở thành mặc định.

Puppeteer là thư viện JavaScript cho phép điều khiển trình duyệt Chrome hoặc Firefox thông qua DevTools Protocol hoặc WebDriver BiDi. Phát triển bởi Google, Puppeteer giúp bạn tự động hóa các hành động như mở trang, nhập liệu, bấm nút, chụp màn hình, xuất PDF... mà không cần hiển thị giao diện người dùng.

✨ Điểm nổi bật

  • Cài đặt tự động trình duyệt: npm i puppeteer tự động tải Chrome phù hợp.
  • Hỗ trợ Firefox thử nghiệm: Dùng WebDriver BiDi để điều khiển Firefox.
  • API dạng locator hiện đại: Sử dụng page.locator() kết hợp selector tiếp cận trợ cập (ARIA) hoặc văn bản.
  • Chạy headless mặc định: Không cần giao diện đồ họa, tiết kiệm tài nguyên.
  • Hỗ trợ MCP: Tích hợp với chrome-devtools-mcp để tự động hóa và debug trình duyệt.
  • Xuất file PDF & screenshot: Hỗ trợ chụp màn hình đầy đủ hoặc một phần, xuất PDF chất lượng cao.
  • Tự động cài lại trình duyệt: Có thể dùng npx puppeteer browsers install nếu script cài bị chặn.

💡 Vì sao đáng chú ý

Không như Selenium cần cài đặt driver riêng lẻ, Puppeteer đóng gói sẵn trình duyệt và cung cấp API JavaScript trực quan, giúp giảm thời gian thiết lập đáng kể. Đặc biệt mạnh ở việc kiểm thử tự động (E2E), scraping dữ liệu, và sinh ảnh/PDF tĩnh động từ nội dung web.


#Puppeteer #ChromeAutomation #WebTesting #HeadlessBrowser #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
microsoft/playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

100.9k
Nov 23, 2026
RepositoryTypeScript
obsidianmd/obsidian-clipper

Highlight and capture the web in your favorite browser. The official Web Clipper extension for Obsidian.

5.6k
Nov 19, 2026
RepositoryJavaScript
usebruno/bruno

Opensource IDE For Exploring and Testing API's (lightweight alternative to Postman/Insomnia)

48.5k
Nov 20, 2026
RepositoryGo
moonD4rk/HackBrowserData

Decrypt and export passwords, cookies, history and more from 20 browsers on Windows, macOS and Linux. For authorized security research, incident response and DFIR.

14.7k
Nov 17, 2026
RepositoryJavaScript
brookhong/Surfingkeys

Map your keys for web surfing, expand your browser with javascript and keyboard.

6.2k
Nov 14, 2026
RepositoryGo
mxschmitt/playwright-go

Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.

3.5k
Nov 5, 2026
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.

211.9k
Nov 23, 2026
RepositoryPython
donnemartin/system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

378.9k
Sep 15, 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.

161.7k
Nov 22, 2026