Update ThiladhunScraper.php

This commit is contained in:
2021-06-10 00:56:09 +05:00
parent 8ba9c814c5
commit 7554f16be3

View File

@@ -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'))))