thiladhun scrapper to green
This commit is contained in:
@@ -39,8 +39,8 @@ class ThiladhunScraper
|
||||
|
||||
$crawler = $this->client->request('GET', $url);
|
||||
|
||||
$crawler->filter('h1')->each(function ($node) {
|
||||
$this->title = $node->text();
|
||||
$crawler->filter('meta[property="og:title"]')->each(function ($node) {
|
||||
$this->title = $node->attr('content');
|
||||
});
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ class ThiladhunScraper
|
||||
"slug" => basename($node->attr('href'))
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
$crawler->filter('a > .elementor-post-info__item--type-author')->each(function ($node) {
|
||||
|
||||
Reference in New Issue
Block a user