I am writing my program and I am trying to figure out how to make it multi-thread compatible.
This is the specific issue I am trying to solve.
How do I create a program that loads 1000 email accounts and does the following:
1. log in once to each account.
2. searches and scrapes data from different websites (no overlapping)
3. logs out of the program and gives a log report and returns variables.
How do I enable multi-threading and make sure the program only goes through 1 account (instead of every thread going through every account.)
Does that make sense? I want to upload one CSV with all account info and run the program with multi-thread enabled while making sure the individual threads don't repeat the function on the same accounts.