MCPcopy
hub / github.com/unclecode/crawl4ai / install_playwright

Function install_playwright

setup.py:39–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37sync_requirements = ["selenium"]
38
39def install_playwright():
40 print("Installing Playwright browsers...")
41 try:
42 subprocess.check_call([sys.executable, "-m", "playwright", "install"])
43 print("Playwright installation completed successfully.")
44 except subprocess.CalledProcessError as e:
45 print(f"Error during Playwright installation: {e}")
46 print("Please run 'python -m playwright install' manually after the installation.")
47 except Exception as e:
48 print(f"Unexpected error during Playwright installation: {e}")
49 print("Please run 'python -m playwright install' manually after the installation.")
50
51class PostInstallCommand(install):
52 def run(self):

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…