Jump to content
UBot Underground

question about program running slowly


Recommended Posts

I have a bot that I've developed over the past few weeks that automates some functions on a website. It seems to be really slow to start up, though and sometimes freezes up after a while.

 

Anyone have any tips on how to structure the bot's defines, etc so that it runs as efficiently as possible?

 

Some advice on the best tool to use to code the HTML UI would be great, as well.

Link to post
Share on other sites

It is your code.(not saying ubot is bug free)

And yes i agree that there is a lack of a from start to finish bot made with best practices .

So we all have to figure it out at our own.

Generally IF ELSE commands slows down any soft. In other languages u try to avoid them.

It really depends on your code and not 100% ubot related, but common programming sense.

In Ubot u just program sequences so take a look at other programing languages what best works and try to make it with ubot. It is just a tool and as any tool it could be used on variety of ways.

Link to post
Share on other sites

How long is after awhile? And what is it doing? Is it collecting information? If so how much? Are you running it multithreaded?

 

It's hard to give you direction without knowing more. The more information you can give about the program the better we can help you.

Link to post
Share on other sites

How long is after awhile? And what is it doing? Is it collecting information? If so how much? Are you running it multithreaded?

 

It's hard to give you direction without knowing more. The more information you can give about the program the better we can help you.

 

I don't have multithreading done on this yet.

 

What it does is login to an account at a website and it goes to a page with a table of info with 20+ rows. It scrapes the table for data, then looks for rows whose first column contain a specific word. Then, it takes the number of each of those rows that contain that word and puts it in another list. This list is used to decide which rows to target (controls the offset of the element to hover over). It then hovers over the first selected row, clicks the button that pops up when it's hovered over, then waits a random amount of time before going to the next one. After the list has ended, it clicks to the next page, clears all of the list data from the previous page, and does it again.

 

Ultimately, I want to be able to run multiple accounts at the same time via multithreading. The lag mostly occurs on starting the program, though; not so much while the process is actually running.

Link to post
Share on other sites

Well that doesn't sound like a big deal then unless it takes like 20 minutes to start up or something? As long as it runs smoothly that is what matters. If your running it on a slow machine it will take a minute to start up sometimes.

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...