Jump to content
UBot Underground

I'm trying to figure out how to tell the bot that if it's bank page, then do this


Recommended Posts

I'm trying to figure out how to tell the bot that if it's bank page, then do this

 

IF

EXISTS

but what ?

THEN

 

Any ideas ?

 

If exists $nothing doesn't work

 

Thanks

 

 

Link to post
Share on other sites

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 {
    }
}
Link to post
Share on other sites

Odd

I 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 ?

Link to post
Share on other sites

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)

Link to post
Share on other sites
  • 1 month later...

(and now i need to learn Aymen HTTP/sockets plugins oh brother hahahahaha)

phone your beerdealer ! will be a longer session :) :)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...