wetbrazerzkidai.blogg.se

Ubot studio count run time
Ubot studio count run time







ubot studio count run time
  1. #Ubot studio count run time how to#
  2. #Ubot studio count run time code#

So you’re not going to write the regular step-by-step code and then just easily paste it into some multithreading code that you found somewhere online or in the forum.

ubot studio count run time

So this is very important that you have a logical understanding of what the stuff should do. If you want to write a data extraction tool for example, and you wanted to run multiple threads, build the logic of how you control the thread first, and then you can create the code. So sometimes it makes sense to write that down first or even draw kind of a flow chart where you have the different connections if-then-else and that kind of stuff, without putting the real code into it. The logical process of managing the different activities. How you manage the status of a thread, how you launch them, how you pause or you stop them, and all of this. So how many threads you want to start at once, how many threads you want to start in total, how you control them. At what stage of the process you want certain actions to happen. You should think about what you want to happen. First of all, you should not just start writing the code. I mean when we say we want to launch two threads for example. So this is work you don’t have to do all the time.īut, it’s very important that you think about the logical flow of what you try to achieve. Or maybe even have a whole set of defined commands that you just paste into a new bot and then you can use that. You can write that once and then copy and paste it now every time you need that.

#Ubot studio count run time how to#

Examples I gave for the logging and how to put certain ExBrowser commands into defines and you have logs and all that stuff. So of course it’s a lot more work to build a bot that is state-aware, but you can work with templates. Because you do not have any control of what’s going on there and you don’t know what is happening.

ubot studio count run time

I’m not saying this is bad, but this is not proper coding, I would say. So that’s a very straightforward and a normal flow. Open the browser, load the page, click that button, go there, go there, go there, do this, extract that, save it. So first you do this, then you do that, then you do that. They start from the top to the bottom and just write the stuff in a step-by-step manner. Because people start to write code like they write a letter. So when you start coding, and when you’re new to this, this is sometimes tricky. And then it changes and adjusts the behavior of the bot and the flow of your code. So your bot has stayed aware, it knows what to do, or better said, it knows what the current status is and what is expected. If there is a certain element, then you do this. Conditions where you change the behavior of your code, the logic of your code based on certain criterias. So flow control, commands, and functions are if-then-else, loop, do-while, and stuff like that.

ubot studio count run time

That means you control what the bot actually does or what the code does. And with a state aware bot, you also have to somehow control the flow of the application. A couple of days or weeks ago, I recorded that video, “How to build a state aware bots”, which was very critical. So I had some discussion via the support system with some guys about how to manage threads. In today’s video we will talk about logical flow, mainly related to multithreading.









Ubot studio count run time