Brazilautoscrape-labs/pydoll
Pydoll is a library for automating chromium-based browsers without a WebDriver, offering realistic interactions.
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
#4 Repository Của Tuần
#5 Repository Của Tuần
🚀 Pydoll: Tự động hóa trình duyệt Chromium không WebDriver, mạnh tính năng trích xuất dữ liệu
Pydoll kết nối trực tiếp đến Chrome DevTools Protocol qua WebSocket — không WebDriver, không cờ
navigator.webdriver, không xung đột phiên bản.
Pydoll là thư viện Python tự động hóa trình duyệt Chromium (Chrome, Edge) bằng cách giao tiếp trực tiếp với Chrome DevTools Protocol (CDP) qua WebSocket. Không cần WebDriver, không để lại dấu vết navigator.webdriver, và không gặp vấn đề tương thích phiên bản. Pydoll kết hợp API bậc cao để tự động hóa ẩn danh với truy cập CDP cấp thấp để kiểm soát mạng, fingerprint và hành vi trình duyệt. Đặc biệt, công cụ trích xuất dữ liệu dựa trên Pydantic giúp ánh xạ DOM trực tiếp sang đối tượng Python có kiểu và xác thực.
✨ Điểm nổi bật
- Trích xuất có cấu trúc: Định nghĩa mô hình Pydantic, gọi
tab.extract(), nhận dữ liệu có kiểu và đã xác thực. - Bất đồng bộ và có kiểu: Xây dựng trên
asyncio, kiểm tra kiểu đầy đủ bằngmypy, hỗ trợ tự động hoàn thành IDE. - Ẩn danh tích hợp sẵn: Di chuyển chuột giống con người, gõ phím thực tế, kiểm soát fingerprint qua cài đặt trình duyệt.
- Kiểm soát mạng: Can thiệp yêu cầu để chặn quảng cáo, giám sát lư lượng, thực hiện yêu cầu HTTP xác thực bằng phiên trình duyệt.
- Hỗ trợ Shadow DOM và iframe: Tìm kiếm và tương tác với phần tử trong shadow root và iframe đa nguồn gốc.
💡 Vì sao đáng chú ý
Pydoll khác biệt so với Selenium hoặc Playwright ở chỗ nó không dựa trên WebDriver, giúp tránh hoàn toàn các cảnh báo phát hiện tự động hóa. Kết hợp hai phong cách tự động hóa — imperatively để điều hướng và tương tác, và declaratively để trích xuất dữ liệu — giúp cải thiện trải nghiệm phát triển đáng kể. Phù hợp cho web scraping, kiểm thử tự động và các bài toán cần vượt qua biện pháp chống bot.
#CDP #Chromium #BrowserAutomation #WebScraping #AntiDetection #TiniX
Similar Projects
Discover other similar projects and AI models.
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.
Advanced Privacy Browser Core with Unified Fingerprint Defense: Cloudflare, Akamai, Kasada, Shape, DataDome, PerimeterX, hCaptcha, FunCaptcha, Imperva, reCAPTCHA, ThreatMetrix, Adscore
Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Knowledge infrastructure to make your agents smarter. Search, scrape and access 550+ data providers through one API.
Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.
Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.