Python screen capture issues - page still loading

fusionha

Solid State Member
Messages
7
Location
UK
Running into a couple of with Python while taking full-page screenshots. I'm using Selenium and it's like the page is still loading when the screenshot is taken. I get an empty block where the content is supposed to be. Is there a way around this?
 
You can try using shot-scraper (you'll also need to install playwright). I think it's your best shot (no pun intended). Seriously, I had a project maybe a year ago, a year and a half, where I had to figure this out. I tested a few methods, the one I mentioned worked, and my python screenshot nightmare ended. See if this can be of any help (the GitHub repository with all the code is linked there). You need to have python 3 installed. By the way, shot-scraper won't help with ads and cookie banners, but other than that - decent full-page screenshots. At least the pages are fully loaded.
 
Back
Top Bottom