Title: I need a script to take screenshots of a webpage automatically (Python) Post by: thrillainvanilla on April 10, 2024, 10:12:23 AM Can anyone help me with this? I had no idea it would be so nerve-racking. I tried using Selenium, but for some websites, those pop-ups and cookie banners are ruining it. Some screenshots are taken while the page is still loading; I end up having an empty space and a block of text/image missing. There are more and more pages I need to capture and I can't spend too much time trying to figure out each one separately.
Title: Re: I need a script to take screenshots of a webpage automatically (Python) Post by: Vod on April 10, 2024, 10:20:44 AM Can anyone help me with this? I had no idea it would be so nerve-racking. I tried using Selenium, but for some websites, those pop-ups and cookie banners are ruining it. Some screenshots are taken while the page is still loading; I end up having an empty space and a block of text/image missing. There are more and more pages I need to capture and I can't spend too much time trying to figure out each one separately. https://www.google.com/search?q=python+web+scraping Title: Re: I need a script to take screenshots of a webpage automatically (Python) Post by: whatspopping on April 10, 2024, 10:32:45 AM I got to learn how knotty python screen capture can be. In some cases, using Selenium headlessly would give me better screenshots. A couple of other options you can test out are explained here (https://urlbox.com/website-screenshots-python) in detail. Depends on a couple of factors if they will work in some specific cases, as always. It is still possible that you'll be struggling with pop-ups and cookie banners, plus all kinds of lurking issues if you need full-page screenshots.
Title: Re: I need a script to take screenshots of a webpage automatically (Python) Post by: thrillainvanilla on April 10, 2024, 10:44:40 AM Thanks, guys, I appreciate it. I wasn't sure if I'll get any replies but I had to give it a shot. Off I go to look into these.
|