bmon3y 1 Posted August 29, 2017 Report Share Posted August 29, 2017 I am trying to use threads to scrape data from a site but am running into a major delay issue. At first about a minute passes between when threads should be closing and being spawned. I am using threads to run my bot more efficiently and save time but as of right now it is slower than not using threads. I have tried using the thread count plugin + thread, thread count + thread spawn. I am also using the exbrowser plugin. Has anyone ever experienced this? Quote Link to post Share on other sites
HelloInsomnia 1103 Posted August 29, 2017 Report Share Posted August 29, 2017 Can you post your code? You won't need the threads counter plugin in Ubot 5 anymore although it won't hurt to use. Threads counter plugin doesn't do anything for thread spawn by the way. If you want to use that then do threading this way (which is the way I would recommend anyways): http://network.ubotstudio.com/forum/index.php/topic/10042-new-v4-tutorial-multi-threading-example/ Quote Link to post Share on other sites
bmon3y 1 Posted August 29, 2017 Author Report Share Posted August 29, 2017 Can you post your code? You won't need the threads counter plugin in Ubot 5 anymore although it won't hurt to use. Threads counter plugin doesn't do anything for thread spawn by the way. If you want to use that then do threading this way (which is the way I would recommend anyways): http://network.ubotstudio.com/forum/index.php/topic/10042-new-v4-tutorial-multi-threading-example/ That was my mistake. I used thread spawn by itself. I will be posting my code later today. Quote Link to post Share on other sites
Bot-Factory 602 Posted August 29, 2017 Report Share Posted August 29, 2017 As Nick said, I would stay away from thread spawn. Do it the old school way. That's working fine and you have more control about what's going on.And you can track status and everything. thread spawn is more of a black box. For basic stuff and people who start with it, it's fine. But for everything advanced. Take a look at the link Nick posted. Dan 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.