cob007 19 Posted September 28, 2018 Report Share Posted September 28, 2018 Hello, i am scraping content directly to a table inside a new browser in multitheaded bot, however the table gets overwritten as new browsers open and scrape the content. Is there a way to avoid this? Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted September 28, 2018 Report Share Posted September 28, 2018 Tables are not thread safe in ubot studio.List are tho. : Quote Link to post Share on other sites
cob007 19 Posted September 30, 2018 Author Report Share Posted September 30, 2018 yes but if the only option is to scrape the content say using table command as below and if it needs to happen inside a thread so that scraping can happen for multiple keyword searches by user then in that case what to do? scrape table(<table,class="results_table">,&table3) Quote Link to post Share on other sites
HelloInsomnia 1103 Posted September 30, 2018 Report Share Posted September 30, 2018 In that case you can lock that bit of code Heopas plugin has a thread lock and it will only allow one thread at a time to access that part of code. 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.