aboutsummaryrefslogtreecommitdiffstats
path: root/scraper
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2024-10-29 21:29:17 -0400
committerlolcat <will@lolcat.ca>2024-10-29 21:29:17 -0400
commit070f9d442bee7801ce1de3ab4e2c99cb33c9f4b3 (patch)
tree5d05d6219b16db3e0786914f3c5eb90a515e5df6 /scraper
parent9c18753ec3b19571f7a84865faa090e48b12bc38 (diff)
brave fix
Diffstat (limited to 'scraper')
-rw-r--r--scraper/brave.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/scraper/brave.php b/scraper/brave.php
index fd4c46e..ee0c37d 100644
--- a/scraper/brave.php
+++ b/scraper/brave.php
@@ -293,8 +293,8 @@ class brave{
/*
$handle = fopen("scraper/brave.html", "r");
$html = fread($handle, filesize("scraper/brave.html"));
- fclose($handle);
- */
+ fclose($handle);*/
+
try{
$html =
@@ -411,9 +411,19 @@ class brave{
}
$data =
+ rtrim(
+ preg_replace(
+ '/\(Array\(0\)\)\).*$/',
+ "",
+ $grep[1]
+ ),
+ " ]"
+ ) . "]";
+
+ $data =
$this->fuckhtml
->parseJsObject(
- $grep[1]
+ $data
);
unset($grep);
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage