Update MihaaruScraper.php
This commit is contained in:
@@ -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
|
||||
];
|
||||
|
Reference in New Issue
Block a user