Update ThiladhunScraper.php
This commit is contained in:
@@ -48,7 +48,7 @@ class ThiladhunScraper
|
|||||||
$this->content[] = preg_replace("/[a-zA-Z]/", "", $node->text());;
|
$this->content[] = preg_replace("/[a-zA-Z]/", "", $node->text());;
|
||||||
});
|
});
|
||||||
|
|
||||||
dd($crawler->filter('div[data-widget_type*="theme-post-featured-image.default"] figure img')->first()->attr('src'));
|
$this->image = $crawler->filter('div[data-widget_type*="theme-post-featured-image.default"] figure img')->first()->attr('src');
|
||||||
|
|
||||||
$crawler->filter('.entry-tags a')->each(function ($node) {
|
$crawler->filter('.entry-tags a')->each(function ($node) {
|
||||||
if(!preg_match('/[^A-Za-z0-9-]/', basename($node->attr('href'))))
|
if(!preg_match('/[^A-Za-z0-9-]/', basename($node->attr('href'))))
|
||||||
|
|||||||
Reference in New Issue
Block a user