puppeteer/puppeteer
JavaScript API for Chrome and Firefox
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository Của Tuần
#1 Repository Của Tuần
#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 puppeteertự độ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 installnế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.
Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
Highlight and capture the web in your favorite browser. The official Web Clipper extension for Obsidian.
Opensource IDE For Exploring and Testing API's (lightweight alternative to Postman/Insomnia)
Decrypt and export passwords, cookies, history and more from 20 browsers on Windows, macOS and Linux. For authorized security research, incident response and DFIR.
Map your keys for web surfing, expand your browser with javascript and keyboard.
Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
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.