Mihaaru scraper support

This commit is contained in:
2020-08-10 03:21:56 +05:00
parent 5af5f75175
commit fd2fc06115
4 changed files with 30 additions and 6 deletions

View File

@@ -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,
];