Skip to content

Commit

Permalink
[SensCritique] Fix bridge (RSS-Bridge#3860)
Browse files Browse the repository at this point in the history
  • Loading branch information
kranack authored Dec 27, 2023
1 parent ad2d4c7 commit c8178e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bridges/SensCritiqueBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function collectData()
}
$html = getSimpleHTMLDOM($uri);
// This selector name looks like it's automatically generated
$list = $html->find('div.Universes__WrapperProducts-sc-1qa2w66-0.eVdcAv', 0);
$list = $html->find('div[data-testid="row"]', 0);

$this->extractDataFromList($list);
}
Expand All @@ -69,6 +69,7 @@ private function extractDataFromList($list)
if ($list === null) {
returnClientError('Cannot extract data from list');
}

foreach ($list->find('div[data-testid="product-list-item"]') as $movie) {
$item = [];
$item['title'] = $movie->find('h2 a', 0)->plaintext;
Expand Down

0 comments on commit c8178e1

Please sign in to comment.