Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Commit 4cdb969

Browse files
authored
Website HTML has changed (#2)
* Use Yarn * Website HTML has changed
1 parent 32bb663 commit 4cdb969

File tree

6 files changed

+515
-946
lines changed

6 files changed

+515
-946
lines changed

app/Console/Commands/BrowserScrape.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,9 @@ public function handle()
8888
$crawler = $this->client->getCrawler();
8989
$preferences = $crawler->filterXPath('//button[@data-testid="accept-button"]');
9090
$preferences->click();
91-
$element = $crawler->filterXPath(
92-
'//div[@data-testid="nlib-title"][contains(@class, "ipc-title")]/a[@class="ipc-title-link-wrapper"]/h3[text()="1. Kenneth Branagh"]'
93-
);
94-
$element->click();
91+
sleep(1);
9592
$this->client->takeScreenshot('screenshot.jpg');
9693

97-
9894
return 0;
9995
}
10096
}

0 commit comments

Comments
 (0)