luka-dev/playwright-php
最新稳定版本:1.1.13.1
Composer 安装命令:
composer require luka-dev/playwright-php
包简介
A PHP Module, that help with generating of task script for playwright and send it node.js
README 文档
README
Install with composer
composer require luka-dev/playwright-php
A PHP Module, that help with generating of task script for playwright and send it node.js server
All detailed information here
Code example
$connectionConfig = new \ConnectionConfig('localhost'); $contextConfig = new ContextConfig(); $contextConfig->setUserAgent('Custom UserAgent'); $contextConfig->setProxy( 'protocol://address:port', null, 'username', 'password' ); $taskServer = new \TaskServer($connectionConfig, $contextConfig); $script = new Context(); $page = $script->newPage(); $page->goto('https://2ip.ru/'); $element = $page->query('div.ip'); $element->textContentToVar('ip'); $script->resolve('ip'); $response = $taskServer->runTask($script);
统计信息
- 总下载量: 15.57k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-09-01