Need help with Python webkit2png script
Apologies for the begging post, I’ve been using the awesome script from Paul Hammond that allows you to take screen shots using a non visible webkit (including the flash content).
I’m using this for a weekly trawl of a series of ecommerce sites, so I can build a reference source for ecommerce design over a period of time. I figured it would be helpful to people who want “how has J Crew changed over the last 6 months”.
The first two weeks are already up…
http://www.flickr.com/photos/screentrawl/collections/
Now the script is amazing, it does 99% of what I need and for that I am very greatful to Paul. The 1% issue I have is that it takes the screen shot once all the content has loaded, which means that pages that contain Flash that needs to load further, it’s not getting that content, you just get a shot of the preloader.
I’ve been trying to find a way to delay the screen capture by 10 or 20 seconds. But my amateurish attempts have failed. I add the time package, and slotted in time.wait(10) in a few places, and although it is slowing the script down, it’s not doing the pause between web page being called and screen shot been taken.
Can anyone help with this. I just need to know what code to add to add that functionality.
Many thanks in advance for any assistance.
About this entry
You’re currently reading “Need help with Python webkit2png script,” an entry on Jon Sykes
- Published:
- 11.17.08 / 12pm
- Category:
- Back End Code, Personal Projects
QR Code for this Blog Post

No comments
Jump to comment form | comments rss [?] | trackback uri [?]