DEDUPED Hot AI repos, turned into use cases Get 5 a day

How to write Python browser scripts on the engine library with Invisible Playwright MCP

Use the invisible_playwright engine from Python code, with Playwright's API, instead of prompts.

Authorization notice. Invisible Playwright MCP is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.

Who it is forA developer building a repeatable scraping or testing job who wants code they can version and rerun rather than a chat prompt.

The problemPrompt-driven agents are hard to rerun exactly, and plain Playwright scripts are the kind of automation the README says sites block.

The outcomeA Python script that opens pages in the stealth Firefox engine and returns the data you asked for on each run.

What you need first

  • uv installed, using the install command for your operating system from the README
  • An OpenRouter API key for the standalone web UI and for model calls
  • An MCP-capable assistant such as Claude Code, Codex or Gemini CLI, for the MCP route
  • Permission to automate the sites you point it at, and a read of their terms

Steps

  1. Install uv with the README command for your system.
  2. Install the engine with pip install invisible-playwright from the project at github.com/feder-cr/invisible_playwright. (inferred, check the README)
  3. Write a script that calls the Playwright API to open the target page and read the element you need. (inferred, check the README)
  4. Run the script with python <your-script>.py and save the output to a file. (inferred, check the README)
  5. Check the output against the page by hand before you rely on it.

Prompt for your agent

Using the invisible_playwright library from feder-cr/invisible_playwright, write a Python script that opens <target-url>, reads <element-or-field>, and prints the value. Expected output: the printed value and the URL it came from. Verify that the script stops with an error, not a guessed value, when the element is missing.

Caveat. The README describes the engine as a Python library with Playwright's API but gives no install command for it, so confirm the install steps on the engine's own page before you rely on them.

Share: X LinkedIn Hacker News Email Copy link

Disclaimer

Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page