Adds ability to run parallel windows with multiprocessing - #39
Adds ability to run parallel windows with multiprocessing#39BigweldIndustries wants to merge 2 commits into
Conversation
|
I've built out the headless code fairly well in my PR here #25. I use argparse to give a user the option to pass a |
|
I am curious about how exactly you did that, because when I tried making it headless, it was unable to locate certain elements such as buttons. |
|
Same issue - Going to return my PR to draft and work it out |
|
I would like to add, another advantage of this implementation is that you can let it run in the background without interfering with you tasks, (the windows are reused and dont auto focus) |
|
Read #54 |
This is a big change that can greatly increase speed. I used the
futureslibrary to bring multiprocessing to the application. When it starts, it asks how many parallel processes you would like. It opens that amount of windows, each one generates just as it normally would. I made one slight change, that beingstart_driver()is nowinitialize_driver()due to the fact they each seperate process needs to start their own driver that does not close each time, and stays open. Same functionality. Also, this is essentially just a re-do of #21, which is very outdated and convoluted. Also this is a more ideal approach, and somewhat like what #16 strived to accomplish. Hopefully in the future we can achieve headless chrome + proxies. I may work on those. Solidarity forever comrades!