PHP code example of webpipe / webpipe-sdk
1. Go to this page and download the library: Download webpipe/webpipe-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
webpipe / webpipe-sdk example snippets
use Webpipe\WebpipeClient;
$client = new WebpipeClient(); // reads WEBPIPE_API_KEY
$doc = $client->scrape('https://example.com', formats: ['markdown']);
echo $doc->markdown;
$session = $client->browser->create(url: 'https://example.com');
$session->waitUntilRunning();
$page = $session->scrape(formats: ['markdown']);
$session->close();