diff options
author | lolcat <will@lolcat.ca> | 2023-08-10 22:54:37 -0400 |
---|---|---|
committer | lolcat <will@lolcat.ca> | 2023-08-10 22:54:37 -0400 |
commit | 2913c58cecc26b699ec44c19f105f036f3dcb6a6 (patch) | |
tree | c1058928956d0933caf6dff2c206e3580d8c1942 /scraper/brave.php | |
parent | bcc6ce58b304653c6c83d5307cd2648c30adfb85 (diff) |
added faceberg videos
Diffstat (limited to 'scraper/brave.php')
-rw-r--r-- | scraper/brave.php | 20 |
1 files changed, 7 insertions, 13 deletions
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 @@ <?php -/* -$brave = new brave(); - -$handle = fopen("captcha.html", "r"); -$html = fread($handle, filesize("captcha.html")); -fclose($handle); - -$brave->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" => [ |