mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-05 09:09:37 +00:00
[GQMagazineBridge] fix retrieve the content of an article at a given url (#2305)
This commit is contained in:
parent
943a5e3e8b
commit
9cd8e93bb9
@ -77,8 +77,6 @@ class GQMagazineBridge extends BridgeAbstract
|
||||
// Since GQ don't want simple class scrapping, let's do it the hard way and ... discover content !
|
||||
$main = $html->find('main', 0);
|
||||
foreach ($main->find('a') as $link) {
|
||||
if(strpos($link, $this->getInput('page')))
|
||||
continue;
|
||||
$uri = $link->href;
|
||||
$date = $link->parent()->find('time', 0);
|
||||
|
||||
@ -117,7 +115,7 @@ class GQMagazineBridge extends BridgeAbstract
|
||||
*/
|
||||
private function loadFullArticle($uri){
|
||||
$html = getSimpleHTMLDOMCached($uri);
|
||||
return $html->find('section[data-test-id=MainContentWrapper]', 0);
|
||||
return $html->find('article', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user