summaryrefslogtreecommitdiff
path: root/scraper/brave.php
diff options
context:
space:
mode:
Diffstat (limited to 'scraper/brave.php')
-rw-r--r--scraper/brave.php20
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" => [