Update ThiladhunService.php
This commit is contained in:
@@ -23,7 +23,7 @@ class ThiladhunService extends Client
|
||||
$articlesitems = [];
|
||||
//Looping through the articles and scraping and while scraping it creates a new instance of the scraper.
|
||||
foreach ($articles as $article) {
|
||||
$articlesitems[] = (new ThiladhunScraper)->extract($article["link"], $articles["pubDate"]);
|
||||
$articlesitems[] = (new ThiladhunScraper)->extract($article["link"], $article["pubDate"]);
|
||||
}
|
||||
|
||||
return $articlesitems;
|
||||
|
Reference in New Issue
Block a user