I got this code, and I'm trying to separate all the emails, passwords and the third line in a different string. Here is the code:
import random
from concurrent.futures import ThreadPoolExecutor
FILENAME = 'testing/pokens.txt'
NTHREADS = 5
def myfunc():
with open(FILENAME) as infile:
lines = infile.readlines()
line = random.choice(lines).strip()
tokens = line.split(':')
return ' '.join(tokens)
def main():
with ThreadPoolExecutor() as executor:
futures = []
printable = set()
for _ in range(NTHREADS):
future = executor.submit(myfunc)
futures.append(future)
for future in futures:
printable.add(future.result())
for p in printable:
print(p)
if __name__ == '__main__':
main()
So for example "p" prints out j3mxshasn12312zh@oncemail.co.kr 75d9d216fba123216-4e*%& third_line
with removing duplicate line threads. I want all the emails, all the passwords and all the third lines stored in a different string (email1,email2,pass1,pass2,third_line1,third_line2, etc).
Pokens.txt
file sample:
1thtx3213wqpzxn@oncemail.co.kr:2664a171322139489348:third_line
2bixr3123dxpdzz@oncemail.co.kr:b1*+b0ab9b(17213213^9$#@d1e:third_line
j3mxshasn12312zh@oncemail.co.kr:75d9d216fba123216-4e*%&:third_line