thejake 11 Posted June 20, 2012 Report Share Posted June 20, 2012 I had a big list of domains to take snapshots of, and one decided to render over 30k pixels tall which seemed to cause some sort of problem which caused scripts to hang. I fished around the jank tank for a while and came up with this workaround: set(#url, "example.com", "Global") load html("<iframe src=\"http://{#url}/\" height=\"1024\" width=\"800\" horizontalscrolling=\"no\" verticalscrolling=\"no\"></iframe>") wait for browser event("Everything Loaded", 30) save browser image("C:\\Users\\Administrator\\Pictures\\website snapshots\\{#url}.jpg") Works pretty nice, of course size and border of the iframe can be adjusted. 3 Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted June 20, 2012 Report Share Posted June 20, 2012 Nice hack. This will be useful on my future projects. Quote Link to post Share on other sites
Legend 181 Posted June 20, 2012 Report Share Posted June 20, 2012 Yes... very nice! Thanks for the share!! http://www.ubotstudio.com/forum/public/style_emoticons/default/rolleyes.gif Quote Link to post Share on other sites
celavey 1 Posted June 20, 2012 Report Share Posted June 20, 2012 Great script. Thanks for sharing. Quote Link to post Share on other sites
Gogetta 263 Posted May 3, 2013 Report Share Posted May 3, 2013 ha ha, this was perfect man good thinking... Edit: Just wanted to add that if you use a Wait for command and wait for the body tag to load and after that a wait for 3 seconds the bot should wait for the src to load all the way before taking the snap.. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.