From 2913c58cecc26b699ec44c19f105f036f3dcb6a6 Mon Sep 17 00:00:00 2001 From: lolcat Date: Thu, 10 Aug 2023 22:54:37 -0400 Subject: added faceberg videos --- scraper/brave.php | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'scraper/brave.php') diff --git a/scraper/brave.php b/scraper/brave.php index c598c80..bcec59e 100644 --- a/scraper/brave.php +++ b/scraper/brave.php @@ -1,12 +1,4 @@ bypasscaptcha($html, "yes", "ca");*/ class brave{ @@ -154,6 +146,11 @@ class brave{ case "no": $nsfw = "strict"; break; } + if($country == "any"){ + + $country = "all"; + } + $headers = [ "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/110.0", "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8", @@ -169,11 +166,6 @@ class brave{ "Sec-Fetch-User: ?1" ]; - if($country == "any"){ - - $country = "all"; - } - $curlproc = curl_init(); if($get !== []){ @@ -1990,6 +1982,8 @@ class brave{ as $result ){ + print_r($result); + $out["image"][] = [ "title" => $result["title"], "source" => [ -- cgit v1.2.3