ckam / proxy_checker

simple proxy checker on bash
41 stars 18 forks source link

Multithreading Proxy Checker #3

Open VoltexYT opened 4 years ago

VoltexYT commented 4 years ago

Hey Sir!

Can you add multithreading proxy checker pls? :)

With best regards 💃

ckam commented 4 years ago

Easy solution:

  1. LINES=$(cat sourse_file.txt | wc -l) # get number of lines in file with proxy
  2. THREAD=8 #needed thread
  3. LINES_PER_FILE=$(echo ${LINES}/${THREAD} | bc) # get number of lines per file
  4. split -l LINES_PER_FILE sourse_file.txt output_directory/ #split file with proxy
  5. for FILES in $(ls output_directory); do ./checkProxy.sh -f output_directory/${FILES} -m 5 -g good; done