cjacobs 2 Posted December 24, 2018 Report Share Posted December 24, 2018 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 } Quote Link to post Share on other sites
pash 504 Posted December 24, 2018 Report Share Posted December 24, 2018 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 } Quote Link to post Share on other sites
cjacobs 2 Posted December 30, 2018 Author Report Share Posted December 30, 2018 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! 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.