Update MihaaruScraper.php
This commit is contained in:
@@ -19,7 +19,7 @@ class MihaaruScraper
|
|||||||
$this->client = new Client;
|
$this->client = new Client;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function extract($url, $date = null, $guid = null)
|
public function extract($url, $date = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
$crawler = $this->client->request('GET', $url);
|
$crawler = $this->client->request('GET', $url);
|
||||||
@@ -63,7 +63,7 @@ class MihaaruScraper
|
|||||||
'content' => $this->content,
|
'content' => $this->content,
|
||||||
'url' => $url,
|
'url' => $url,
|
||||||
'date' => $date,
|
'date' => $date,
|
||||||
'guid' => $guid,
|
'guid' => str_replace("https://mihaaru.com/news/","",$url),
|
||||||
'author' => $this->author,
|
'author' => $this->author,
|
||||||
'topics' => $this->topics
|
'topics' => $this->topics
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user