Fix thiladhun scraper

This commit is contained in:
2021-06-10 00:22:44 +05:00
parent 4629067572
commit fb6daf45e3
2 changed files with 7 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Services\Scrapers;
use Goutte\Client;
use Illuminate\Support\Carbon;
class ThiladhunScraper
{
@@ -73,7 +74,7 @@ class ThiladhunScraper
'og_title' => str_replace(" | Thiladhun", "", $crawler->filter('title')->first()->text('content')),
'image' => $this->image,
'content' => $this->content,
'date' => $date,
'date' => Carbon::parse($date)->format("Y-m-d H:i:s"),
'url' => $url,
'author' => $this->author,
'guid' => basename($url),