You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for preNavigationHooks in Playwright #427
Hello and thanks for your interest in Crawlee for Python! Pre-navigation hooks are not currently supported. Before we implement this, would putting the hook code into the request handler help? Or do you need to do something before the page is loaded?
Hello and thanks for your interest in Crawlee for Python! Pre-navigation hooks are not currently supported. Before we implement this, would putting the hook code into the request handler help? Or do you need to do something before the page is loaded?
OK, thank you, I want to change some browser properties before the page loaded, so I think it will be really helpful to support the preNavigationHooks.
I want to do something before the page loads, such as aborting when loading some images or CSS, Is there any trick available to achieve this as of now?
Activity
janbuchar commentedon Aug 13, 2024
Hello and thanks for your interest in Crawlee for Python! Pre-navigation hooks are not currently supported. Before we implement this, would putting the hook code into the request handler help? Or do you need to do something before the page is loaded?
viewv commentedon Aug 13, 2024
OK, thank you, I want to change some browser properties before the page loaded, so I think it will be really helpful to support the
preNavigationHooks.Tallone commentedon Aug 23, 2024
I want to do something before the page loads, such as aborting when loading some images or CSS, Is there any trick available to achieve this as of now?
vdusek commentedon Sep 25, 2024
Implementation from Crawlee JS:
[-]Does the crawlee-python supports preNavigationHooks?[/-][+]Add support for `preNavigationHooks` in Playwright[/+]Yashwanth-Chandrakumar commentedon Oct 18, 2024
@vdusek /assign
janbuchar commentedon Oct 18, 2024
We don't assign issues for hacktoberfest. If you want to contribute, open a PR whenever you're ready. First mergeable one gets merged.
Yashwanth-Chandrakumar commentedon Oct 18, 2024
@janbuchar Thanks Mate
Yashwanth-Chandrakumar commentedon Oct 19, 2024
@janbuchar i have created a PR to solve the issue please view it #602
feat: Add `pre_navigation_hooks` to `PlaywrightCrawler` (apify#631)