Clusteer
Github Repo
  • โšกIntroduction
  • ๐ŸŽ‰Support
  • Getting Started
    • ๐Ÿ†Benchmarks
    • ๐Ÿš€Installation
      • Docker
      • Laravel Sail (Docker)
    • โœจStarting the server
    • ๐Ÿ™ŒBasic example
  • Client commands
    • ๐Ÿ˜Cookies
    • ๐ŸžDebug console
    • ๐Ÿ‘จโ€๐ŸŽจ Screenshot
    • ๐ŸงตRequest metadata
    • โŒšWaiting for requests
  • Actions
    • #๏ธโƒฃ Keyboard commands
    • ๐ŸMouse commands
  • Advanced
    • ๐ŸŽ€Custom Script
    • ๐Ÿ‘ฉโ€๐Ÿš€ Custom Actions
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Getting Started

Basic example

The client relies on the already existent Clusteer server. You can get it locally by starting the server or having a remote one and manually change the config. Below you have a brief example:

use RenokiCo\Clusteer\Clusteer;

$clusteer = Clusteer::to('https://example.com')
    ->setViewport(1280, 720)
    ->setDevice(Clusteer::MOBILE_DEVICE)
    ->setExtraHeaders([
        'My-Header' => 'Value',
    ])
    ->blockExtensions(['.css'])
    ->withHtml()
    ->get();
PreviousStarting the serverNextCookies

Last updated 3 years ago

Was this helpful?

๐Ÿ™Œ