Why is giving me this error :TypeError: cannot pickle '_io.TextIOWrapper' object?
So instead of using multiprocessing I used threads and it worked. This is what I change, instead of:
pool=mp.Pool(mp.cpu_count())results = pool.starmap(getUrlbyCEP,[(cep,driver,search,f) for cep in filecep])
from multiprocecessing library (mp), I used this:
from multiprocessing.dummy import Pool as ThreadPool pool = ThreadPool(4)results = pool.map(f_partial, filecep)