Cookies Popups & Few errors/bugs? #1297
Unanswered
an0mal1a
asked this question in
Forums - Q&A
Replies: 1 comment 1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I don't know if I'm the only one encountering these issues or if I'm doing something wrong with my implementation. I'm trying to handle a cookies popup before processing the page on a website like "Fotocasa.com". The goal is to scroll to the bottom to dynamically render all the content, but I'm facing several issues:
VirtualScrollConfigandscan_full_pagedont wait for the page to load or respect the "wait_for parameter"The js_code parameter doesn't seem to work in my context.
js_codeto click on the cookies popup button (id=didomi-notice-agree-button) and remove it from the DOM, but it doesn't execute as expected.remove_overlay_elementsdoesn't remove the cookies popup effectively.Errors when using
wait_forwith JavaScript conditions.wait_forevaluates to null or undefined, it throws an error instead of handling the absence gracefully.Additional Notes:
wait_for_imagesparameter, and while it seemed to make the scroll work once, I couldn't replicate the behavior consistently.. My main goal is to scroll down the entire page to load all dynamic content.
I'm using Crawl4AI for proxy management and scalability in scraping.
Reproduce Errors:
wait_fororjs_codeIf i use a condition like this:
The program raise an error trying to read properties of null/undefined, so i have to do this instead;
Adding
!!ensure the condition returntrueorfalse, but im unsure if this is the correct approach for thewait_forparameter.Code
Beta Was this translation helpful? Give feedback.
All reactions