Jump to content
UBot Underground

Sanjeev

Fellow UBotter
  • Content Count

    356
  • Joined

  • Last visited

  • Days Won

    9

Posts posted by Sanjeev

  1. If you need a test site go to Manta.com you cant even load it in ExBrowser. I don't know if the fix works or not but its a good test site perhaps. 

     

     

    As @BeerNut stated, Exbrowser/selenium is detected on Manta.

     

    Maybe the above modification might be worth trying on Manta, to see if it works?

  2. I have simplified your code above to just focus on the problem..which is downloading the file to disk,

     

    take a look.. this worked on my side.. I was able to successfully download the file as csv to disk.

    navigate("http://ytcomments.klostermann.ca/","Wait")
    type text(<url field>,"https://www.youtube.com/watch?v=a2AGRYwyUqU","Standard")
    click(<id="scrape-btn">,"Left Click","No")
    loop(1) {
        click(<id="save-csv">,"Left Click","No")
        wait(1)
        plugin command("WindowsCommands.dll", "click dialog button", "Save As", "Save")
    }
    
    

     

     

     I set the bot to click the download button but nothing comes up. Also when I interact with the window, a new window comes up asking me where I want to save the file.

     

    I clicked on that 'red download button'  manually - and it gave a small dropdown  with 2 options -save as json or save as csv

    I chose csv - and then the web page popped up the windows dialog..

     

    I think your click code -

    click(<id="save-csv">,"Left Click","No")
     
    directly brought up this dialog which is what is needed to save the file to disk.
     
    Next I followed up your click command with a windows automation command to save file to disk.
     
    I hope this helps.
  3. A slightly better way... I am trying to account for any number of followers.. 0,10,200,245 ,2.5k etc

    set(#scraped string,"17 board • 2.1k followers","Global")
    
    set(#result,$replace($replace($find regular expression(#scraped string,"\\d+(\\.\\d+k)?(?= followers)"),".",","),"k",00),"Global")
    
    

    I am also assuming that there is a single space after 'followers'.

     

    Code can be made more robust by allowing zero or more spaces after followers.

    set(#scraped string,"17 board •22.7k   followers","Global")
    set(#result,$replace($replace($find regular expression(#scraped string,"\\d+(\\.\\d+k)?(?=\\s*followers)"),".",","),"k",00),"Global")
    
    
    • Like 1
  4. Like Varo said your best bet would be - regex.

     

     

    So for example, if a page said 400 points

    I want to copy that 400 (without the text "points")

     

    A Replace Regular Expression function would help here..

     

    also ,

     

    this is a good free plugin for text extraction  - http://ubot-plugins.com/free-string-management-plugin/

     

    Finally a simple replace - http://wiki.ubotstudio.com/wiki/Replace 

    combined with trim function might help in simple situations like the one you mentioned.

    • Like 1
  5. ojoO2Qy.jpg

     

     

    [ Price - $117.0 - Ubot studio v5 & ExBrowser Source Code]

     

    This is a Ubot studio 5 source code.

     

    In effect you get

     

    • A Ubot file  [.ubot]
    • Plus the compatible chrome browser [portable].
     
     
    When You Buy My source Code and open up the File  You Won't Feel Lost!
     
    • The entire source code is split logically into multiple tabs which makes understanding and working with the code much more easy.
    • Each tab has a video walk through  of the code in that tab in detail
    •  
    • Every single node of my source code has relevant comments to guide you.
     
    Source Code Dependencies –
     
    A commercial plugin – ExBrowser – V1.3.2.2– [You must own and install this plugin version – 1.3.2.2– , before using the source code.]
     
    Uses portable chrome – 60.0.3112.113 [32bit] – [included in download]
     
    IMPORTANT! – please use this exact included version while using this source code – even a slight change in version number may wreak havoc ! – i.e Don’t use – Chrome version 60.0.3112.97 !
     
    Coded in Ubot version 5 – the latest Ubot release. [5.9.50].
     
    You must be at least a Ubot Studio Pro 5 license holder.[Not sure if ExBrowser works with standard Ubot Studio version.]
     
    -------------------------------------------------------------------------------------------------------------------
    What my source code does :
     
    1. Launch and Navigate to Google Sheets Site
    2. Log in into your Google Sheets dashboard by signing into your Google account.
    3. Check if you have successfully logged into your Google sheets Account.
    4. Bonus! -  sometimes while logging in to your Google Account, there are security pages that pop up . You get source code for solving the following: "VERIFY ITS YOU",  and "DONT GET LOCKED OUT OF YOUR ACCOUNT" verify pages.
    5. Create an empty Google sheet and rename it.
    6. Open any Google sheet by name.
    7. Make a copy of an existing Google Sheet.
    8. Upload any  .csv/Excel file  on your local hard drive to your  Google sheets account and convert it into a Google sheet. 
    9.  Create a  Google sheet from an existing Ubot studio Table!
    10. Open a Google sheet containing rows of data and append data from a Ubot studio table to that Google Sheet.
    11. Delete any Google Sheet by name.

    -----------------------------------------------------------------------------------------------------------------------

     
    Watch the detailed demo videos of the source code in action below!
     
     
    01  Google Sheets -  Launch and Navigate Tab - demo
     
     
    02 Google Sheets -  Log in -Tab  - demo
     
     
    03 Google Sheets - Log in success check tab - demo
     
     
    04 google sheets -  verify page tab - demo
    [You get source code for solving the following: "VERIFY ITS YOU",  and "DONT GET LOCKED OUT OF YOUR ACCOUNT" verify pages.]
     
     
    05 Google sheets -  Creating an empty Google sheet tab  - demo
     
     
    06 Google sheets -  go to home page tab  - demo
     
     
    07 Google sheets - open a Google sheet by name tab - demo
     
     
    08 Google Sheets - make a copy of an existing Google Sheet tab - demo
     
     
    09 Google sheets -  csv/xls to Google sheet tab  - demo
     
     
    10 Google Sheets -  Ubot table to Google sheet Tab - demo
     
     
    11 Google sheets - appending data to an existing Google sheet tab  - demo
     
     
    12 Google sheets - delete a sheet by name tab  - demo
     
     

    -------------------------------------------------------------------------------------------------------------------------------------------------

     

    Only Chrome Browser supported.
     
    Firefox browser support is currently not included. – IMO FireFox is not a reliable workhorse like Chrome –
     
    If you go through the ExBrowser Forum Thread you will see that FireFox has always behaved like a beast with a limb or an arm missing ! Vis a vis Selenium of course!
     
    Tested on a windows 10 – 64bit PC. Source code is only
     
    --------------------------------------------------------------------------------------------------------------------------------------------------
     

    HuePXox.jpg

    [Pressing this button will take you to my Gumroad.com sales page. I sell all my stuff through them. They are very popular and very very safe. Also Gumroad supports all credit cards and of course PayPal!]

     

     

     

    • Like 1
  6. Hello Guys!
     
    Here is My First Ubot studio ExBrowser Tutorial - for you.
     
    I Hope you like it.
     
    There are 2 parts to it -
     
     The 1st video takes a detailed look at the problem -
    which you may encounter due to web page overlay elements in the header and footer area on many websites like e.g Youtube.com
     
    The second video provides a solution which may work for you in say 75% of the cases you may encounter.
     
    Considering the myriad web design setups you encounter while automating websites via Browser based automation - I think 75% is a pretty good number.
     
    But have a look and decide for yourself.

     

     

    -------

     

     

     

    Let me know what you think!

     

    • Like 2
  7.  

    first thing is to separate your functions from functionality, thats very messy, and poor coding technique

     

     

    anyway  neested "if" are not a good codingstyle use elseif  and/or set parameters like

    if(bla=true)then{#parameter=$true}

    if(#parameter=$true)then{do what u have to do}

    and so on

     

    Thanks for your reply - but I find in some circumstances nested ifs  become unavoidable,

    also, Ubot does not appear to have a clean way to  return back  - if you are inside a 'loop' node?

     

     

    I don't think there is a limit to keep UBot stable.

     

    Tadej, I take it you mean  multiple nested ifs will not make Ubot Unstable -no matter how deep the nesting?

     

    Thanks.

  8. Fellas?

     

    Just wanted to know from your experience with using nested ifs-

     

    If I have code like this -  multiple nested ifs..

     

    if("") {
        then {
            if("") {
                then {
                    if("") {
                        then {
                            if("") {
                                then {
                                    if("") {
                                        then {
                                        }
                                        else {
                                        }
                                    }
                                }
                                else {
                                }
                            }
                        }
                        else {
                        }
                    }
                }
                else {
                }
            }
        }
        else {
        }
    }

     

    Does this cause Ubot to be unstable ..?

    Do I need to limit to how many nested ifs we can use inside our script?

     

    I came across this thread..  Its an old thread , but with Ubot  - many issues still remain.

    Thanks.

     

     

  9. check status using the captcha Id,

     

     

    a2mateit  - what I have done is I have used Aymen's code.. try it.. it works - every time!

     

    I have tried pash's plugin And got the same response you got.

    Use Aymen's code for check status works flawlessy.

×
×
  • Create New...