Mihaaru scraper support
This commit is contained in:
@@ -15,15 +15,15 @@ class MihaaruService extends Client
|
||||
{
|
||||
|
||||
$articles = $this->get("https://mihaaru.com/rss")["channel"]["item"];
|
||||
|
||||
|
||||
$articlesitems = [];
|
||||
$emihaaru = new MihaaruScraper();
|
||||
$scraper = new MihaaruScraper();
|
||||
|
||||
foreach ($articles as $article) {
|
||||
$link = $article['link'];
|
||||
$date = $article['pubDate'];
|
||||
$guid = $article['guid'];
|
||||
$articlesitems[] = $emihaaru->extract($link, $date, $guid);
|
||||
$articlesitems[] = $scraper->extract($link, $date, $guid);
|
||||
}
|
||||
|
||||
return $articlesitems;
|
||||
|
Reference in New Issue
Block a user