Puppeteer & Playwright Remote Browser Automation by SilverLining.Cloud
Purchase this listing from Webvar in AWS Marketplace using your AWS account. In AWS Marketplace, you can quickly launch pre-configured software with just a few clicks. AWS handles billing and payments, and charges on your AWS bill.About
This is a repackaged open-source software that spins up a remote Chrome instance. Additional charges apply for support for this virtual machine.
Remote Puppeteer and Playwright script execution
Launch a virtual machine with Chrome preinstalled and configured for remote browser automation using Puppeteer and Playwright. This VM includes a preconfigured environment with a reverse proxy, making Chrome accessible on port 9222 for remote debugging and automation. The virtual machine runs a headless Chrome instance, accessible via on the public IPv4 address on port 9222, allowing you to connect remotely using Puppeteer or Playwright. This setup enables seamless browser automation, web scraping, and testing without the need for a local Chrome installation.
Easy Usage
Example Puppeteer in Node.js:
const puppeteer = require('puppeteer');
(async () => {
try {
const ipAddress = '';
const response = await fetch('http://' + ipAddress + ':9222/json/version');
const data = await response.json();
let wsEndpoint = data.webSocketDebuggerUrl;
wsEndpoint = wsEndpoint.replace('/devtools', ':9222/devtools');
console.log('Connecting to WebSocket:', wsEndpoint);
const browser = await puppeteer.connect({ browserWSEndpoint: wsEndpoint });
const page = await browser.newPage();
await page.goto('https://example.com');
console.log(await page.title());
await browser.close();
} catch (error) {
console.error("Connection failed:", error);
}
})();
Example Playwright in Python:
import requests
from playwright.syncapi import syncplaywright
ip_address = ""
debuggerurl = "http://{}:9222/json/version".format(ipaddress)
try:
response = requests.get(debugger_url)
response.raiseforstatus()
data = response.json()
ws_endpoint = data["webSocketDebuggerUrl"]
wsendpoint = wsendpoint.replace("/devtools", ":9222/devtools")
print("Connecting to WebSocket:", ws_endpoint)
with sync_playwright() as p:
browser = p.chromium.connectovercdp(ws_endpoint)
page = browser.new_page()
page.goto("https://example.com")
print("Page Title:", page.title())
browser.close()
except Exception as e:
print("Connection failed:", e)
This AMI is designed to be minimal, including only the Chrome browser and a reverse proxy, ensuring a clean and lightweight virtual machine.
For further assistance, contact our expert cloud team via email at support@silverlining.cloud or through live chat on our website. Detailed documentation for this image is available here: https://www.silverlining.cloud/docs/aws/chrome-remote-headless.
Launch Chrome remotely Now!
Related Products
show moreHow it works?
Search
Search 25000+ products and services vetted by AWS.
Request private offer
Our team will send you an offer link to view.
Purchase
Accept the offer in your AWS account, and start using the software.
Manage
All your transactions will be consolidated into one bill in AWS.
Create Your Marketplace with Webvar!
Launch your marketplace effortlessly with our solutions. Optimize sales processes and expand your reach with our platform.