From ffd31f28ac28fcfe1d465ac7eac29924b7fe07f2 Mon Sep 17 00:00:00 2001 From: vdbhb59 Date: Wed, 10 Sep 2025 14:40:12 +0530 Subject: [PATCH] Now scraping image resolutions on brave https://git.lolcat.ca/lolcat/4get/commit/1b6182bc3cb40d8c8d3bcde1a8632a877225b8d9 --- scraper/brave.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scraper/brave.php b/scraper/brave.php index e6f5908..cb57e73 100644 --- a/scraper/brave.php +++ b/scraper/brave.php @@ -352,7 +352,6 @@ class brave{ $html = fread($handle, filesize("scraper/brave.html")); fclose($handle);*/ - try{ $html = $this->get( @@ -1290,13 +1289,13 @@ class brave{ "source" => [ [ "url" => $result["properties"]["url"], - "width" => null, - "height" => null + "width" => (int)$result["properties"]["width"], + "height" => (int)$result["properties"]["height"] ], [ "url" => $result["thumbnail"]["src"], - "width" => null, - "height" => null + "width" => (int)$result["thumbnail"]["width"], + "height" => (int)$result["thumbnail"]["height"] ] ], "url" => $result["url"] @@ -1857,4 +1856,4 @@ class brave{ ) ); } -} +} \ No newline at end of file