定制 jez500/web-scraper-for-laravel-proxies 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jez500/web-scraper-for-laravel-proxies

最新稳定版本:1.0.2

Composer 安装命令:

composer require jez500/web-scraper-for-laravel-proxies

包简介

Proxy provider drivers for jez500/web-scraper-for-laravel.

README 文档

README

Proxy provider drivers for jez500/web-scraper-for-laravel.

This package is the companion package that will register named proxy-backed WebScraper drivers into a Laravel application via package auto-discovery.

Installation

composer require jez500/web-scraper-for-laravel-proxies

Once installed, the package service provider registers any drivers listed in the internal driver registry with the base web_scraper factory.

Current State

The package scaffold and auto-registration flow are in place. The first concrete provider driver included is oxylabs.

Adding a Driver

  1. Create a driver class that implements Jez500\WebScraperForLaravel\Drivers\WebScraperDriverInterface.
  2. Add the driver alias and class to Jez500\WebScraperForLaravelProxies\DriverRegistry::all().
  3. The package service provider will automatically register that alias with WebScraper when the package boots.

Oxylabs

The oxylabs driver uses the Oxylabs Web Scraper API realtime endpoint and authenticates with your API user credentials.

Add credentials to your Laravel app:

OXYLABS_USERNAME=your-username
OXYLABS_PASSWORD=your-password

Optionally publish the config:

php artisan vendor:publish --tag=web-scraper-proxies-config

Basic usage:

use Jez500\WebScraperForLaravel\Facades\WebScraper;

$scraper = WebScraper::driver('oxylabs')
    ->from('https://example.com')
    ->get();

Passing Oxylabs request options:

$scraper = WebScraper::driver('oxylabs')
    ->setOptions([
        'geo_location' => 'United States',
        'render' => 'html',
        'user_agent_type' => 'desktop',
    ])
    ->from('https://example.com')
    ->get();

The driver defaults to Oxylabs source=universal, but you can override it with setOptions(['source' => 'google_search']) or package config when using a target-specific source.

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固