Jump to content
UBot Underground

unibotsi

Members
  • Content Count

    60
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by unibotsi

  1. Hey there

     

    While finishing the first bot, i am running in more and more problems. 

    Most of my defines will be fired by a button (html ui). 

    But they run not completely through.

     

    I do not get the last alerts.

    In this example the #CollectorStatus will not be set, which i would like to use as an indicator of success or not.

    This is a search and collect profiles function.

    define gosearch {
        wait for browser event("DOM Ready","")
        navigate("https://www.xing.com/search/members?keywords={#search}","Wait")
        wait(4)
        loop(2) {
            set(#CollectorStatus,"<div class=\"alert alert-primary\" role=\"alert\">
      <div class=\"loader\"></div>   Visiting Profiles
    </div>","Global")
            add list to list(%ProfileUrlsCollector,$scrape attribute(<class="name-page-link">,"href"),"Delete","Global")
            click(<class="foundation-icon-shape-arrow-right">,"Left Click","No")
            wait for browser event("DOM Ready","")
            wait(2)
        }
        add list to list(%ToVisitProfilUrls,$list from text($replace(%ProfileUrlsCollector,"/profile","https://xing.com/profile"),$new line),"Delete","Global")
        set(#CollectorStatus,"<div class=\"alert alert-success\" role=\"alert\">
     Done - besuche die Profile mit dem Profile Visitor.
    </div>","Global")
        wait(2)
        set(#botfolder,$folder exists("{$special folder("Desktop")}\\XngVisitor"),"Global")
        if(#botfolder) {
            then {
                save to file("{$special folder("Desktop")}\\XngVisitor\\tovisit.csv",%ToVisitProfilUrls)
                alert("FileSaved")
            }
            else {
                create folder($special folder("Desktop"),"XngVisitor")
                save to file("{$special folder("Desktop")}\\XngVisitor\\tovisit.csv",%ToVisitProfilUrls)
                alert("FileSaved")
            }
        }
        alert("EverythingDone")
    }
    

    This example should check if a specific text exists on the page - but the check does not happen.

    This is a login function.

    define login {
        navigate("http://login.xing.com","Wait")
        wait for browser event("DOM Ready","")
        ui text box("Account Email",#email)
        set table cell(&Creds,0,0,#email)
        type text(<email field>,#email,"Standard")
        ui password("Xing Passwort",#pass)
        set table cell(&Creds,1,0,$encrypt(#pass,"base64"))
        type text(<password field>,#pass,"Standard")
        save to file("{$special folder("Desktop")}\\XngVisitor\\settings.csv",&Creds)
        click(<name="button">,"Left Click","No")
        wait for browser event("DOM Ready","")
        wait(2)
        if($search page("Eingabe gerade leider nicht erkannt")) {
            then {
                set(#LoginStatus,"<div class=\"alert alert-danger\" role=\"alert\">
      Bitte einloggen oder Email bzw. Passwort überprüfen.
    </div>","Global")
            }
            else {
                set(#LoginStatus,"<div class=\"alert alert-success\" role=\"alert\">
      Yes - eingeloggt. Auf gehts!
    </div>","Global")
            }
        }
    }
    

    Does anyone see some mistakes i made?

     

    While starting/testing out my scripts in different tabs, everything worked out fine.

    As i combined all code in one tab now and structuring everything into commands - i get a lot of uncool behaviour.

     

     

     

  2. The main thing - which will speed up development aggressively:

     

    As a music producer and working with ableton, my production process went to ULTRAFAST, when i started to use the library.

     

    Same thing i am missing here. A ultra easy to use library which works like a breaze.

    Just drag N drop the specified and named define into the library and use it in every script i am working - with the ability to edit the code.

    The current private bot bank is kind of okeeeeey - but very uncozy to use. I do not see the code (in case i want to change something - which would be 80% of use cases) and the workflow of putting something into the bank is "kind of horrible". 

     

    Just a simple "drag my stuff there" and work further on this bot.

    Next day, next bot - starting stuff, pull something out from library, edit it and go for it.

     

    Another cool thing would be a "bot browser" - where i could go through my bots in a sidebar (like in the botbank) and could import the scripts or tabs to the current project i am working on. In case i did not save it to the mentioned library ;-)

    • Like 1
  3. Hey there

     

    If a user uses my compiled bot and he does have a problem, it would be awesome to have a log file, which the user could send me for bug fixing.

     

    Is there something like that?

     

    Basically like that:

    • User encounters a bug or an error
    • A log file automatically collects the last activities from this bot in a given folder (where the bot has his workfiles like csv)
    • User can send me an email with the log file
    • I know whats going on and can help much faster

     

    Best,

    Petey

×
×
  • Create New...