Multithreading bot using SeleniumBase #2356
Labels
duplicate
The answer/solution already exists somewhere
UC Mode / CDP Mode
Undetected Chromedriver Mode / CDP Mode
Hello,
I'm implementing a multithreading python bot to scrape a Twitter account.
I implemented scraping using Threads (threading.Thread). In my case I want create about 20 threads that scrape a specific Twitter page account.
The logic I implemented works but the CPU goes to 100% after a few threads (about 10).
I think I'm doing the thread management wrong. How can I optimize the algorithm? Should I use py-test?
The
start_twitter(args)
method is called from anasync def
method.Thanks in advance
The text was updated successfully, but these errors were encountered: