Meta information and article body cast
This commit is contained in:
@@ -43,11 +43,8 @@ class MihaaruScraper
|
||||
$this->author = $cleaneddata;
|
||||
});
|
||||
|
||||
$crawler->filter('article')->each(function ($node) {
|
||||
$content = $node->text();
|
||||
|
||||
$input = str_replace("\n", '', $content);
|
||||
$this->content = $input;
|
||||
$crawler->filter('article p')->each(function ($node) {
|
||||
$this->content[] = preg_replace("/[a-zA-Z]/","",$node->text());
|
||||
});
|
||||
|
||||
$crawler->filter('.article-tags')->each(function ($node) {
|
||||
|
||||
Reference in New Issue
Block a user