crawl4ai icon indicating copy to clipboard operation
crawl4ai copied to clipboard

Failed to take a screenshot. The screenshot is blank.

Open ns-arakawa opened this issue 1 year ago β€’ 2 comments

I found a problem with v0.3.6 where the screenshot would be blank. This problem seems to occur on sites that are reloaded using javascript like "https://0-0.energy"

I got around this by changing the source in async_crawler_strategy.py. I attached screenshot of souce code I changed

γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2024-10-14 180406

I changed the value of the argumen for page.wait_for_timeout from 100 to 3000. I think that the appropriate value will differ depending on the site. It is better to change to changrable parameter from API.

ns-arakawa avatar Oct 14 '24 22:10 ns-arakawa

@ns-arakawa Thx for pointing this out, I am checking it right now

unclecode avatar Oct 15 '24 10:10 unclecode

@ns-arakawa I tested with the give URL, I can't replicate your case unfortunately, on my end it works. Can you share your exact code? Thx

unclecode avatar Oct 16 '24 06:10 unclecode

This case was caused by Javascript in Goddy's parked domain. This was not a crawl4ai bug. I will close this ticket

ns-arakawa avatar Oct 17 '24 22:10 ns-arakawa

Thx

unclecode avatar Oct 18 '24 10:10 unclecode