From 634d8ae7fa6c82f84dcf329f7f366f9c12bf8a3d Mon Sep 17 00:00:00 2001 From: paprykdev <58005447+paprykdev@users.noreply.github.com> Date: Sun, 29 Dec 2024 14:51:36 +0100 Subject: [PATCH] fix(noguchi): wait for page to load Signed-off-by: paprykdev <58005447+paprykdev@users.noreply.github.com> --- app/scripts/noguchi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/noguchi.py b/app/scripts/noguchi.py index 8e0fab4..1af7ff5 100644 --- a/app/scripts/noguchi.py +++ b/app/scripts/noguchi.py @@ -24,10 +24,10 @@ class NoguchiScraper: self.browser = await p.chromium.launch(headless=False) self.context = await self.browser.new_context() self.page = await self.context.new_page() - self.page.set_default_timeout(10000) await self.go_to(self.url) await self.skip_cookies() await self.get_hrefs() + self.page.set_default_timeout(10000) # await self.get_data() # self.save_data() await self.browser.close()