fix(noguchi): wait for page to load
Some checks failed
Docker Image CI / build (push) Has been cancelled
Some checks failed
Docker Image CI / build (push) Has been cancelled
Signed-off-by: paprykdev <58005447+paprykdev@users.noreply.github.com>
This commit is contained in:
parent
c7ddd2487f
commit
634d8ae7fa
@ -24,10 +24,10 @@ class NoguchiScraper:
|
|||||||
self.browser = await p.chromium.launch(headless=False)
|
self.browser = await p.chromium.launch(headless=False)
|
||||||
self.context = await self.browser.new_context()
|
self.context = await self.browser.new_context()
|
||||||
self.page = await self.context.new_page()
|
self.page = await self.context.new_page()
|
||||||
self.page.set_default_timeout(10000)
|
|
||||||
await self.go_to(self.url)
|
await self.go_to(self.url)
|
||||||
await self.skip_cookies()
|
await self.skip_cookies()
|
||||||
await self.get_hrefs()
|
await self.get_hrefs()
|
||||||
|
self.page.set_default_timeout(10000)
|
||||||
# await self.get_data()
|
# await self.get_data()
|
||||||
# self.save_data()
|
# self.save_data()
|
||||||
await self.browser.close()
|
await self.browser.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user