fix jazeera

This commit is contained in:
Mohamed jinas
2024-01-06 16:16:36 +05:00
parent b7bda9b09e
commit 40c53aa1d6

View File

@@ -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"),