Jump to content



cjacobs

Member Since 25 Mar 2013
Offline Last Active Dec 29 2018 07:42 PM
-----

Topics I've Started

Problem With Backlink Checker

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
}


Table Comparison And Scraping Problem

04 September 2018 - 08:57 AM

Hi,

 

Wondering if anyone could help me with a problem I am having.

 

I am wanting to loop through a table and only scrape Cities if their latitude number (Column 5) is +2.00 more than the row (City) my app is currently on.

 

So in the table below my original position (#row) is 0 (Adak with has a latitude of 51.88), and I want to scrape the next cities that have a latitude number up to 53.88 which in this case would be:

Adak, Atka, Attu Station, Nikolski, Unalaska

<img src="https://imgur.com/a/PUrFojF">

I can't figure out what I need to qualify (comparison, eval etc) and extract the cities needed.

 

    set(#tableloop,0,"Global")
    clear list(%NearbyCities)
    loop($table total rows(&data)) {
        set(#Plus2,$table cell(&data,#row,5),"Global")
        if($comparison($table cell(&data,#tableloop,5),"> Greater than",#Plus2)) {
            then {
                add item to list(%NearbyCities,$table cell(&data,#tableloop,0),"Don\'t Delete","Global")
            }
            else {
            }
        }
        increment(#tableloop)
    }
 
Any ideas?
 
 

Ui Html Panel - Open File & Run Button Problem

11 June 2018 - 05:43 PM

Hi,
 
I'm working on a UI html panel and I cannot get my Open File button or Start buttons to function. I defined the Start but am not having any luck.
 
 
 
Can anyone see my problem in the following code?
 
 
 
--Open File Button--
 
<button variable="#localBizs" fillwith="value" type="file" id="addimager89966" dialogtype="open" name="file" class="button08" style="text-decoration:none;padding:7px 15px;font-family:Georgia;font-size:18px;font-weight:800;color:#000000;border-radius:9px;"><!--lab-->Load Local Business File</button>
 
--Run Button--
 
<button id="addimager246634"  onclick="ubot.runScript('Start()')" class="button02" style="text-decoration:none;padding:7px 15px;font-family:Georgia;font-size:18px;font-weight:400;color:#ffffff;border-radius:6px;"><!--lab-->Create Driving Directions</button>
 
Thanks