diff --git a/app/Services/Scrapers/JazeeraScraper.php b/app/Services/Scrapers/JazeeraScraper.php index 4d3f630..52dbbbe 100644 --- a/app/Services/Scrapers/JazeeraScraper.php +++ b/app/Services/Scrapers/JazeeraScraper.php @@ -36,7 +36,7 @@ class JazeeraScraper "slug" => basename($node->attr('href')) ]; } - + }); @@ -45,11 +45,12 @@ class JazeeraScraper } //Remove all the alphabets from string //preg_replace("/[a-zA-Z]/", "",$string); + return [ 'source' => 'Jazeera', 'title' => $crawler->filter('h1')->first()->text(), 'og_title' => $crawler->filter('meta[property*="og:title"]')->first()->attr('content'), - 'image' => $crawler->filter(".single-entry-thumb img")->first()->attr('data-src'), + 'image' => $crawler->filter(".single-entry-thumb img")->first()->attr('src'), 'content' => $this->content, 'url' => strtok($url,'?'), 'date' => Carbon::parse($date)->format("Y-m-d H:i:s"),