Jump to content
UBot Underground

Problem With Backlink Checker


Recommended Posts

Hi all,

I building a backlink checker but keep getting "True" alerts on every url. Can you see what I'm doing wrong?

Thanks,

Cavin

clear list(%URLs)
clear list(%target)
clear table(&data)
ui text box("URL/Text to Find",#target)
ui block text("URLS to Crawl",#websites)
set list position(%target,0)
add list to list(%target,$list from text(#target,$new line),"Delete","Global")
set list position(%URLs,0)
add list to list(%URLs,$list from text(#websites,$new line),"Delete","Global")
add list to table as column(&data,0,0,%URLs)
set(#row,0,"Global")
loop($table total rows(&data)) {
    clear list(%html)
    navigate($table cell(&data,#row,0),"Wait")
    wait for browser event("Page Loaded","")
    set(#scrape,$scrape attribute(<innerhtml="">,"innerhtml"),"Global")
    wait(.05)
    if($contains(%html,#target)) {
        then {
            alert("true")
        }
        else {
            alert("false")
        }
    }
    pause script
}

Link to post
Share on other sites

you want check "%html" but next loop you not change data in "%html"

i thing you want check "#scrape"

clear list(%URLs)
clear list(%target)
clear table(&data)
ui text box("URL/Text to Find",#target)
ui block text("URLS to Crawl",#websites)
set list position(%target,0)
add list to list(%target,$list from text(#target,$new line),"Delete","Global")
set list position(%URLs,0)
add list to list(%URLs,$list from text(#websites,$new line),"Delete","Global")
add list to table as column(&data,0,0,%URLs)
set(#row,0,"Global")
loop($table total rows(&data)) {
    clear list(%html)
    navigate($table cell(&data,#row,0),"Wait")
    wait for browser event("Page Loaded","")
    set(#scrape,$scrape attribute(<innerhtml="">,"innerhtml"),"Global")
    wait(.05)
    if($contains(#scrape,#target)) {
        then {
            alert("true")
        }
        else {
            alert("false")
        }
    }
    pause script
}
Link to post
Share on other sites

Thanks Pash! I missed that! I tried so many different things I forgot to add that back.
Still having trouble though, UBot keeps shutting down after it runs a few urls. No pattern really.

Thanks again!

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...