webpro 31 Posted April 11, 2014 Report Share Posted April 11, 2014 I'm trying to figure out how to tell the bot that if it's bank page, then do this IFEXISTSbut what ?THEN Any ideas ? If exists $nothing doesn't work Thanks Quote Link to post Share on other sites
Steve 30 Posted April 11, 2014 Report Share Posted April 11, 2014 You should be able to scrape the entire page into a variable (there's a few ways to do this) and then check if the variable is blank. Try this: set(#page, $scrape attribute(<outerhtml=w"*">, "outerhtml"), "Global") if($comparison(#page, "=", $nothing)) { then { alert("blank page") } else { } } Quote Link to post Share on other sites
webpro 31 Posted April 11, 2014 Author Report Share Posted April 11, 2014 Thanks Steve, i'll try this when i catch another blank page and report for others to see Quote Link to post Share on other sites
webpro 31 Posted April 11, 2014 Author Report Share Posted April 11, 2014 OddI always get the BLANK message ?It's working when i get a blank page alright, but if i test the code on a normal page with content, i still get the blank message ?What am i missing ? Thanks set(#page, $scrape attribute(<outerhtml=w"*">, "outerhtml"), "Global") if($comparison(#page, "=", $nothing)) { then { alert("blank page") } else { alert("good") } } Is it a cache issue ? Quote Link to post Share on other sites
webpro 31 Posted April 11, 2014 Author Report Share Posted April 11, 2014 Ahhh crap, my fault. I forgot to add the SET COMMAND so it scrapes first lol... My bad. This is working fine guys, so copy the code.I need a break. Anyone has a beer in the fridge for me ? (and now i need to learn Aymen HTTP/sockets plugins oh brother hahahahaha) Quote Link to post Share on other sites
Steve 30 Posted April 11, 2014 Report Share Posted April 11, 2014 No problem. Glad you got it working. Quote Link to post Share on other sites
blumi40 222 Posted May 30, 2014 Report Share Posted May 30, 2014 (and now i need to learn Aymen HTTP/sockets plugins oh brother hahahahaha)phone your beerdealer ! will be a longer session :) Quote Link to post Share on other sites
a2mateit 395 Posted May 30, 2014 Report Share Posted May 30, 2014 phone your beerdealer ! will be a longer session :) Blumi, your posts always make my day! 1 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.