aboutsummaryrefslogtreecommitdiffstats
path: root/scraper
diff options
context:
space:
mode:
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