Jump to content
UBot Underground

Sanjeev

Fellow UBotter
  • Content Count

    356
  • Joined

  • Last visited

  • Days Won

    9

Posts posted by Sanjeev

  1. not sure if this is what you are looking for - 

     

    create table from file("C:\\Users\\ubot sample scripts\\sampletable.txt",&cityElevation)
    set(#list total,0,"Global")
    set(#max_results,3,"Global")
    clear list(%nearby_cities)
    set(#max_elevation,$add($table cell(&cityElevation,0,5),2),"Global")
    set(#current_row,0,"Global")
    loop($table total rows(&cityElevation)) {
        if($both($comparison(#list total,"< Less than",#max_results),$comparison($table cell(&cityElevation,#current_row,5),"<= Less than or equal to",#max_elevation))) {
            then {
                add item to list(%nearby_cities,$table cell(&cityElevation,#current_row,0),"Don\'t Delete","Global")
                increment(#list total)
                increment(#current_row)
            }
            else {
                increment(#current_row)
            }
        }
    }

  2. create table from file("C:\\ubot sample scripts\\sampletable.txt",&cityElevation)
    clear list(%nearby_cities)
    set(#max_elevation,$add($table cell(&cityElevation,0,5),2),"Global")
    set(#current_row,0,"Global")
    loop($table total rows(&cityElevation)) {
        if($comparison($table cell(&cityElevation,#current_row,5),"<= Less than or equal to",#max_elevation)) {
            then {
                add item to list(%nearby_cities,$table cell(&cityElevation,#current_row,0),"Don\'t Delete","Global")
                increment(#current_row)
            }
            else {
            }
        }
    }

     

     

    this was the table I used -

     

    adak,alaska,ak,adak,ak,51.88
    atka,alaska,ak,atka,ak,52.19611
    attu station,alaska,ak,attu staion,ak,52.880
    nikolski,alaska,ak,nikolski,ak,52.938
    unlaska,alaska,ak,aualaska,ak,53.87
    akutan,alaska,ak,akutan,ak,54.13
    false pass,alaska,ak,false pass,ak,54.85
    King cove,alaska,ak,King cove,ak,55.85
     
    ----------------------------------------------------------------
    I am assuming you want to scrape the city name only?
     
    the logic is as follows - 
    ---------------------------------------
    We set a variable to = 51.88 + 2
     
    set(#max_elevation,$add($table cell(&cityElevation,0,5),2),"Global")
     
     
    Then we look at the 'column 5' value of each row - and assert - that it's value should be less than 53.88 or equal to 53.88
     
     if($comparison($table cell(&cityElevation,#current_row,5),"<= Less than or equal to",#max_elevation))
     
     
    if yes - add city name - 'column 0'  in this case of the  current row to list.
     
    add item to list(%nearby_cities,$table cell(&cityElevation,#current_row,0),"Don\'t Delete","Global")
    • Like 1
  3.  

     

    Does the same thing apply for regular ubot browser as well, although i didnt use wait for element, but i did use regular wait and sometimes it will not type in textbox and sometimes not click:

     

    Absolutely! The concept is the same.

     

    With normal wait  command  - if the site takes longer to load than what you have specified - the wait will fail.

     

    say, wait 1 sec - then type - but if the element has not loaded yet ,say it will take 1.2 secs to load in this case,  then Ubot studio will initiate type text after 1 second. Hence the fail.

     

    This is a good practice too -

     

    http://network.ubotstudio.com/forum/index.php/topic/19018-solution-wait-for-element-if-not-showing-then-else/

     

     

  4. Thanks for this Write Up! Good to read positive things about Ubot Studio.

     

    STM is 99 dollars a month. Can you recommend any cheaper/free resource for someone who wants to get into Affiliate marketing?

     

    Somewhere one can get good practical info and not hype and incorrect info?

     

  5. Remember, with browser based automation - adding  wait for element is essential!

     

    As you cannot predict the environment the bot is running in. Especially in the context of bots made for sale where you are not in control.

     

    There are so many variables to consider -

    The biggest issue will be the system resources available to the browser..

    A bad anti virus program can affect browser's performance,

    as will the number and the kind of tasks running on the system at the same time - ( how much resources are the other processes consuming?) .

     

    wait for element is your constant companion with browser automation- unfortunately!  :)

  6. you need to add a wait for element - for the search box to load

     

    set(#Niche,"Plumber","Global")
    set(#Country,"New York","Global")
    plugin command("ExBrowser.dll", "ExBrowser Launcher", "Chrome", "", $plugin function("ExBrowser.dll", "$ExBrowser Set User Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36"))
    plugin command("ExBrowser.dll", "ExBrowser Navigate", "https://www.bing.com/maps?FORM=Z9LH3")
    plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "//input[@id=\"maps_sb\" and @type=\"search\"]", "Appear", 30)
    plugin command("ExBrowser.dll", "ExBrowser Type Text (Human Delay)", "//input[@id=\"maps_sb\" and @type=\"search\"]", "{#Niche} {#Country}", "", "")
    plugin command("ExBrowser.dll", "ExBrowser Click", "//*[@id=\"maps_sb_container\"]/div[1]/div")

  7. We all know that black hat botting cannot be feasible for long - still works [well?], but looking into the future its clear that beating /fighting sites is not going to be an easy game - if not an outright losing proposition.

     

    I see the title of this post as a new direction we could take.

     

    one thing in our favor is that  we can do windows automation too, with help of windows automation plugins [built in/free/commercial - all of these are available] or combine Ubot with stuff like Autoit.

     

    Have a look at this article here - it will provide some food for thought.

     

    I want to know what you guys think about this topic.

    Do you think this could be the direction for us to take, and how we could go about doing it?

     

    Thanks.

  8.  

     

    My bot requires clicking the mouse in a precise location

     

    Depending on your project's budget , this may or may not be the answer your looking for. 

     

    https://network.ubotstudio.com/forum/index.php/topic/16388-sell-plugin-advanced-screen-and-windows/

     

    - this plugin supports image recognition for mouse clicks.

    He also has a demo video showcasing that feature.

     

    Should do the trick.. try messaging the creator or posting in the sales thread.

    • Like 1
  9. These are my thoughts on this  topic - would like to know what you guys think -

     

    Other avenues to make money from Ubot studio-

     

    1.Help startups with automation needs?

     

    There are sites like Product Hunt/ Appsumo where you can find info on web startups - these guys appear to be  pretty bootstrapped in terms of resources [ both people and money],

     

    So reaching out to them and explaining what you can provide in terms of Browser Automation -( sometimes their customers too need browser automation for things like migrating from an existing app or system to the startups)-  using Ubot studio could help here.

     

     

    2.There are always your local businesses - could be any kind of setup - hospital/school/clinics/shops - they all use internet/apps like gmail/other web based apps too ( even windows applications are doable with a plugin from Pash)

     

    Where Ubot could help is in automating their daily routines and maybe integrating it to some level?

     

    3.Ecommerce store owners who use Shopify etc - could be helped by Ubot?

     

     

    Love to hear what you guys think.  :)

     

     

     

×
×
  • Create New...