-
Notifications
You must be signed in to change notification settings - Fork 11
/
main.py
59 lines (50 loc) · 1.63 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import asyncio
import random
import sys
from questionary import Choice
import questionary
from config import PRIVATE_KEYS, PROXIES
from modules.points import get_claimable_points, claim_points
from modules.generate_wallets import generate_wallets
from modules.invite_wallets import invite_wallets
from modules.daily_check_in import daily_check_in
from itertools import cycle
from modules.withdraw_from_binance import withdraw_from_binance
from settings import SHUFFLE_WALLETS, USER_AGENTS
def get_module():
choices = [
Choice(f"{i}) {key}", value)
for i, (key, value) in enumerate(
{
"Generate wallets": generate_wallets,
"Withdraw BNB from Binance": withdraw_from_binance,
"Invite wallets (max 20 wallets per link)": invite_wallets,
"Daily check in": daily_check_in,
"Claim points": claim_points,
"Get Claimable Points": get_claimable_points,
"Exit": "exit",
}.items(),
start=1,
)
]
result = questionary.select(
"Select a method to get started",
choices=choices,
qmark="🛠 ",
pointer="✅ ",
).ask()
if result == "exit":
sys.exit()
return result
def main():
random.shuffle(USER_AGENTS)
accounts = [
{"private_key": pk, "proxy": proxy, "user_agent": user_agent}
for pk, proxy, user_agent in zip(PRIVATE_KEYS, PROXIES, cycle(USER_AGENTS))
]
if SHUFFLE_WALLETS:
random.shuffle(accounts)
module = get_module()
asyncio.run(module(accounts))
if __name__ == "__main__":
main()