Fix
This commit is contained in:
@@ -29,7 +29,7 @@ class MihaaruScraper
|
|||||||
|
|
||||||
$crawler = $this->client->request('GET', $url);
|
$crawler = $this->client->request('GET', $url);
|
||||||
|
|
||||||
$crawler->filter('h1')->each(function ($node) {
|
$crawler->filter('h1.text-waheed')->each(function ($node) {
|
||||||
$this->title = $node->text();
|
$this->title = $node->text();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ class MihaaruScraper
|
|||||||
'content' => $this->content,
|
'content' => $this->content,
|
||||||
'url' => $url,
|
'url' => $url,
|
||||||
'date' => $date,
|
'date' => $date,
|
||||||
'guid' => str_replace("https://mihaaru.com/news/", "", $url),
|
'guid' => basename($url),
|
||||||
'author' => $this->author,
|
'author' => $this->author,
|
||||||
'topics' => $this->topics
|
'topics' => $this->topics
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user