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. Client commands

Request metadata

You may change the request metadata that contains user agent or extra headers:

$clusteer = Clusteer::to('https://example.com')
    ->setExtraHeaders(['X-My-Header' => 'Value'])
    ->setUserAgent('My Fake/1.0 User-Agent')
    ->get();

Blocking Extensions

You may block certain extensions from running when the page loads. This can easily block all CSS or JavaScript, to achieve greater performance:

$clusteer = Clusteer::to('https://example.com')
    ->waitUntilAllRequestsFinish()
    ->blockExtensions(['.css'])
    ->get();
    
foreach ($clusteer->getTriggeredRequests() as $request) {
    // dump($request['url'])
}
Previous๐Ÿ‘จโ€๐ŸŽจ ScreenshotNextWaiting for requests

Last updated 3 years ago

Was this helpful?

๐Ÿงต