-
Notifications
You must be signed in to change notification settings - Fork 19
/
main.py
38 lines (28 loc) · 1.46 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from multiprocessing.dummy import Pool
from random import choice
from core import start_reger
from utils import logger
if __name__ == '__main__':
print('Donate (any EVM) - 0xDEADf12DE9A24b47Da0a43E1bA70B8972F5296F2\n')
with open('accounts.txt', 'r', encoding='utf-8-sig') as file:
accounts_list: list[str] = [row.strip() for row in file]
with open('proxies.txt', 'r', encoding='utf-8-sig') as file:
proxies_list: list[str] = [row.strip() for row in file]
with open('private_keys.txt', 'r', encoding='utf-8-sig') as file:
private_keys_list: list[str] = [f'0x{row.strip()}' if not row.strip().startswith('0x') else row.strip() for row
in file]
formatted_accounts_list: list = [
{
'account_token': current_account,
'account_proxy': choice(proxies_list) if proxies_list else None,
'account_private_key': private_keys_list.pop() if private_keys_list else None
} for current_account in accounts_list
]
logger.info(f'Загружено {len(accounts_list)} аккаунтов / {len(proxies_list)} '
f'прокси / {len(private_keys_list)} приват-кеев')
threads: int = int(input('\nThreads: '))
print()
with Pool(processes=threads) as executor:
executor.map(start_reger, formatted_accounts_list)
logger.success('Работа успешно завершена')
input('\nPress Enter To Exit..')