Skip to content

Playwright proxies template#44

Open
jay-sahnan wants to merge 4 commits intodevfrom
playwright-proxies
Open

Playwright proxies template#44
jay-sahnan wants to merge 4 commits intodevfrom
playwright-proxies

Conversation

@jay-sahnan
Copy link
Contributor

Summary

  • Add Playwright proxies template demonstrating pure Playwright + Browserbase SDK

What's included

Both templates demonstrate three proxy configurations:

  1. Built-in proxies - Automatic IP rotation via Browserbase
  2. Geolocation proxies - Route traffic through specific locations (e.g., New York)
  3. Custom external proxies - Use your own proxy servers (commented out by default)

New files:
python/playwright/proxies/
├── .env.example
├── main.py
├── pyproject.toml
└── README.md

typescript/playwright/proxies/
├── index.ts
├── package.json
└── README.md

import { Browserbase } from "@browserbasehq/sdk";
import dotenv from "dotenv";

dotenv.config({ path: "../../.env" });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a little weird

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed

waitUntil: "domcontentloaded",
});

// Parse JSON from page body (pure Playwright; no Stagehand).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this meant to be no stagehand? we don't need to mention it then right

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure


## HELPFUL RESOURCES

📚 Stagehand Docs: https://docs.stagehand.dev/v3/first-steps/introduction
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is only playwright we don't need stagehand docs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to have these to show its an option

"prettier": "^3.2.5",
"typescript-eslint": "^8.50.1"
},
"packageManager": "pnpm@9.0.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but not really needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants