Snapshot của dgtlmoon/pyppeteer-ng: 7★ · Python. Headless chrome/chromium automation library (unofficial port of puppeteer)
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Note: this is a continuation of the pyppeteer project
Unofficial Python port of the dev branch of pyppeteer which is an unofficial port of puppeteer JavaScript (headless) chrome/chromium browser automation library :)
Free software: MIT license (including the work distributed under the Apache 2.0 license)
Note: When you run pyppeteer for the first time, it downloads the latest version of Chromium (~150MB) if it is not found on your system. If you don't prefer this behavior, ensure that a suitable Chrome binary is installed. One way to do this is to run pyppeteer-install command before prior to using this library.
Full documentation can be found here. Puppeteer's documentation and its troubleshooting guide are also great resources for pyppeteer users.
pyppeteer strives to replicate the puppeteer API as close as possible, however, fundamental differences between Javascript and Python make this difficult to do precisely. More information on specifics can be found in the documentation.
Keyword arguments for options
puppeteer uses an object for passing options to functions/methods. pyppeteer methods/functions accept both dictionary (python equivalent to JavaScript's objects) and keyword arguments for options.
In python, $ is not a valid identifier. The equivalent methods to Puppeteer's $, $$, and $x methods are listed below, along with some shorthand methods for your convenience:
puppeteer
pyppeteer
pyppeteer shorthand
Page.$()
Page.querySelector()
Page.J()
Page.$$()
Page.querySelectorAll()
Page.JJ()
Page.$x()
Page.xpath()
Page.Jx()
Arguments of Page.evaluate() and Page.querySelectorEval()
puppeteer's version of evaluate() takes a JavaScript function or a string representation of a JavaScript expression. pyppeteer takes string representation of JavaScript expression or function. pyppeteer will try to automatically detect if the string is function or expression, but it will fail sometimes. If an expression is erroneously treated as function and an error is raised, try setting force_expr to True, to force pyppeteer to treat the string as expression.
dgtlmoon/pyppeteer-ng có 7 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/dgtlmoon/pyppeteer-ng. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
dgtlmoon/pyppeteer-ng có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho dgtlmoon/pyppeteer-ng. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
dgtlmoon/pyppeteer-ng có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho dgtlmoon/pyppeteer-ng. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
dgtlmoon/pyppeteer-ng còn đang phát triển không?
Commit gần nhất trên dgtlmoon/pyppeteer-ng là 6 tháng trước (theo timestamp GitHub). Repo có 3 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
dgtlmoon/pyppeteer-ng viết bằng ngôn ngữ gì?
dgtlmoon/pyppeteer-ng chủ yếu viết bằng Python. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc thêm về dgtlmoon/pyppeteer-ng ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/dgtlmoon/pyppeteer-ng là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
pyppeteer-ng có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về pyppeteer-ng.