{"repo":"stefanzweifel/sidecar-browsershot","free":true,"listed":false,"github":"https://github.com/stefanzweifel/sidecar-browsershot","clone":"git clone https://github.com/stefanzweifel/sidecar-browsershot.git","description":"A Sidecar function to run Browsershot on Lambda.","language":"PHP","stars":236,"topics":["aws","lambda","laravel","laravel-package","puppeteer"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"Run Browsershot on AWS Lambda with Sidecar for Laravel This package allows you to run Browsershot on AWS Lambda through Sidecar. You won't need to install Node, Puppeteer or Google Chrome on your server. The heavy lifting of booting a headless Google Chrome instance is happening on AWS Lambda. Requirements This package requires that spatie/browsershot and hammerstone/sidecar have been installed in your Laravel application. Follow their installation and configuration instructions. (You can skip the installation of puppeteer and Google Chrome for Browsershot though.) Installation You can install the package via composer: You can publish the config file with: Register the BrowsershotFunction::class in your sidecar.php config file. Deploy the Lambda function by running: See Sidecar documentation for details. [!Note] You should redeploy the Lambda function, whenever you upgrade spatie/browsershot . Usage You can use BrowsershotLambda like the default Browsershot -class coming from the Spatie package. All you need to do is replace Browsershot with BrowsershotLambda . Warming sidecar-browsershot supports warming for faster execution. To enable this feature set the SIDECAR BROWSERSHOT WARMING INSTANCES variable in your .env to the desired number of instances Sidecar should warm for you. Alternatively you can publish the sidecar-browsershot.php config file and change the warming setting yourself. Reading source from S3 You can store an HTML file on AWS S3 and pass the path to Lambda f","default_branch":null,"files":null,"tree":[],"storefront":"/r/stefanzweifel","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stefanzweifel/sidecar-browsershot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}