Update MihaaruScraper.php

This commit is contained in:
2020-08-11 20:22:04 +05:00
parent 58209242c0
commit a0c10b29b6

View File

@@ -19,7 +19,7 @@ class MihaaruScraper
$this->client = new Client;
}
public function extract($url, $date = null, $guid = null)
public function extract($url, $date = null)
{
$crawler = $this->client->request('GET', $url);
@@ -63,7 +63,7 @@ class MihaaruScraper
'content' => $this->content,
'url' => $url,
'date' => $date,
'guid' => $guid,
'guid' => str_replace("https://mihaaru.com/news/","",$url),
'author' => $this->author,
'topics' => $this->topics
];