Jump to content
UBot Underground

How To Make My Bot Run Faster?


Recommended Posts

Hello, here is my bot:

set headless browser("Off")
navigate("https://www.xxx.com/login","Wait")
wait for browser event("Page Loaded","")
wait(2)
click(<image="___IMAGE___7___IMAGE___">,"Left Click","No")
ui text box("Total Loops:",#total loops)
ui text box("name",#name)
ui text box("pass",#pass)
clear list(%neupdatovany)
ui stat monitor("Total Loops:",#total loops)
ui stat monitor("Loop:",#row)
set(#row,0,"Global")
wait(2)
ui open file("xxx adresy",#adresa)
create table from file(#adresa,&adresy)
wait for browser event("Page Loaded","")
wait(2)
type text($element offset(<username field>,1),#name,"Standard")
type text($element offset(<password field>,2),#pass,"Standard")
wait(2)
click(<name="rem">,"Left Click","No")
wait(1)
click(<image="___IMAGE___6___IMAGE___">,"Left Click","No")
wait for browser event("Page Loaded","")
wait(3)
set headless browser("On")
loop(#total loops) {
    navigate($table cell(&adresy,#row,0),"Wait")
    set(#soucasnadresa,$url,"Global")
    if($either($exists(<innertext=w"* days ago">),$exists(<innertext="1 month ago">))) {
        then {
        }
        else {
            add item to list(%neupdatovany,#soucasnadresa,"Don\'t Delete","Global")
        }
    }
    increment(#row)
}
save to file("C:\\Users\\Administrator\\Desktop\\xxx\\xxx.txt",%neupdatovany)

I would say its pretty simple, but it runs pretty slow. Problem is not my PC or my internet speed, also speed of the site should not be problem, because it is one of the biggest sites in the world which I'm sure has great servers. Other bots runs pretty fast and I tested it on my home PC as well as VPS. Yet it is still very slow, What can I do to make my bot run faster except using headless browser? When I turn off wait for browser event("Page Loaded","") it does not work as I need so I do not know what can I do now, I tried to make everything as simple as possible.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...