zoephoenix 0 Posted November 21, 2014 Report Share Posted November 21, 2014 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. Quote Link to post Share on other sites
BobbyP 8 Posted November 22, 2014 Report Share Posted November 22, 2014 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. Quote Link to post Share on other sites
HelloInsomnia 1103 Posted November 22, 2014 Report Share Posted November 22, 2014 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. Quote Link to post Share on other sites
zoephoenix 0 Posted November 23, 2014 Author Report Share Posted November 23, 2014 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. Quote Link to post Share on other sites
HelloInsomnia 1103 Posted November 24, 2014 Report Share Posted November 24, 2014 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.