Playwright 代理服务

简介

这是一个基于 Playwright 的代理服务,可以帮助你访问需要浏览器环境的网页。它使用真实的 Chromium 浏览器来渲染页面,支持 JavaScript 执行。

使用方法

基本用法

通过在 URL 参数中指定目标网址来使用代理服务:

http://localhost:7860/?url=https://example.com

支持的 HTTP 方法

示例

1. 使用 curl 发送 GET 请求:

curl "http://localhost:7860/?url=https://example.com"

2. 发送 POST 请求:

curl -X POST "http://localhost:7860/?url=https://example.com/api" \
     -H "Content-Type: application/json" \
     -d '{"key": "value"}'

注意事项