Closed pleomax0730 closed 2 weeks ago
After reviewing the source code, I noticed that the take_screenshot function is not being called when setting screenshot=True
in arun
.
However, it is possible to manually take a screenshot by calling screenshot = await crawler.crawler_strategy.take_screenshot(url=url)
As a feature request, could you add an option to include a wait time asyncio.sleep()
after the await goto
inside the take_screenshot function? Some websites have animations or other content that needs time to load, and without a delay, the screenshot may not capture the fully rendered page.
Hi @pleomax0730, absolutely you are right. Such funny things we just missed. I updated the library and soon I will release version 0.3.6, and there it will definitely be implemented. Additionally, I added your suggestion for delay and I really appreciate it. You may also check the branch "0.3.6" if you are willing to give it a try. Thank you for supporting the library.
Environment
Code to reproduce
Expected error