I have a little bash script that iterates a list of URL's and essentially takes screenshots. I am using Xvfb for the screen data, Konqueror for the page rendering and a bash script in Ubuntu.
- konqueror --geometry 1024x740
- qdbus `qdbus | grep -m1 konqueror` /konqueror/MainWindow_1 org.kde.Konqueror.MainWindow.openUrl $URL false
The above loads up Konqueror and for each URL, a single tab loads up whichever URL is fed through the command. The bash script then exports the screen and imagemagick does its work.
I'd like to, if possible, get the HTTP status code for each URL loaded so that I can determine whether it's a worthy screenshot or not, so there's not lots of thumbs with 404's and the like.
I see there's a plethora of interactivity using Konqueror and the command line but online discussion about it is a bit sparse.
Anyone have any experience with it or can point to an answer?