Jump to content



Photo

Problem With Backlink Checker


  • Please log in to reply
2 replies to this topic

#1 cjacobs

cjacobs

    Member

  • Fellow UBotter
  • PipPip
  • 21 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5
  • License:Developer Edition

Posted 23 December 2018 - 08:10 PM

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
}



#2 pash

pash

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3334 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 23 December 2018 - 08:16 PM

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
}

New Plugin:: Advanced Facebook | Advanced Connection | Advanced Twitter | Advanced Email | Advanced PowerPoint
- Advanced Data Text File | Advanced DateTime | Advanced Dialog | Advanced Document | Advanced Google Blogger V3 | Advanced Google Drive | Advanced Google YouTube V3 | Advanced Image | Advanced Video | Advanced Screen and Windows | Advanced Systems | Advanced Ubot 1 | Advanced Ubot 2 | Advanced WordPress | Advanced Connection | Advanced Twitter | Advanced Email | Advanced PowerPoint

- Advanced Captcha (V3) | Advanced Captcha (V2) (Old) | Create Table From Excel (Lite) | Check Conection | Ubot Enter License | Auto Free Memory
- Working hours GMT+7. i regret sometimes the answer is delayed due to health problems.


#3 cjacobs

cjacobs

    Member

  • Fellow UBotter
  • PipPip
  • 21 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5
  • License:Developer Edition

Posted 29 December 2018 - 07:44 PM

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!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users