Show HN: Mochi.js: bun-native high-fidelity browser automation library

原始链接: https://mochijs.com/

相关文章

原文
import { mochi } from "@mochi.js/core";

// boot a stealth browser in three lines
const session = await mochi.launch({
  profile: "linux-chrome-stable",
  seed: "user-12345",
});

const page = await session.newPage();
await page.goto("https://target.example/checkout");

console.log("UA:", session.profile.userAgent);

await session.close();
联系我们 contact @ memedata.com