Mihaaru scraper support
This commit is contained in:
@@ -19,7 +19,7 @@ class MihaaruScraper
|
||||
$this->client = new Client;
|
||||
}
|
||||
|
||||
public function extract($url)
|
||||
public function extract($url, $date = null, $guid = null)
|
||||
{
|
||||
|
||||
$crawler = $this->client->request('GET', $url);
|
||||
@@ -66,6 +66,8 @@ class MihaaruScraper
|
||||
'image' => $this->image,
|
||||
'content' => $this->content,
|
||||
'url' => $url,
|
||||
'date' => $date,
|
||||
'guid' => $guid,
|
||||
'author' => $this->author,
|
||||
'topics' => $this->tags,
|
||||
];
|
||||
|
Reference in New Issue
Block a user