dfefwef
This commit is contained in:
33
test111.py
33
test111.py
@@ -6,6 +6,7 @@ from concurrent.futures import ThreadPoolExecutor
|
||||
from curl_cffi import requests
|
||||
|
||||
from models.tg_phone_devices import TgPhoneDevices
|
||||
from test111111 import generate_evm_wallet
|
||||
|
||||
|
||||
def get_user_data1(
|
||||
@@ -100,28 +101,36 @@ def get_code(user_data1, dev_info1):
|
||||
|
||||
|
||||
def main(dev_info):
|
||||
user_data = get_user_data1(
|
||||
phone=dev_info.phone,
|
||||
bot_name='DepinSimBot',
|
||||
url="https://app.depinsim.com",
|
||||
device_model=dev_info.device_model
|
||||
)
|
||||
# user_data = get_user_data1(
|
||||
# phone=dev_info.phone,
|
||||
# bot_name='DepinSimBot',
|
||||
# url="https://app.depinsim.com",
|
||||
# device_model=dev_info.device_model
|
||||
# )
|
||||
#
|
||||
# # print(user_data)
|
||||
# get_code(user_data1=user_data, dev_info1=dev_info)
|
||||
mnemonic, address, privkey = generate_evm_wallet(num_words=12)
|
||||
dev_info.mnemonic = mnemonic
|
||||
dev_info.address = address
|
||||
dev_info.privkey = privkey
|
||||
|
||||
# print(user_data)
|
||||
get_code(user_data1=user_data, dev_info1=dev_info)
|
||||
dev_info.save()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
with ThreadPoolExecutor(max_workers=20) as executor:
|
||||
dev_infos = list(
|
||||
TgPhoneDevices.select().where(TgPhoneDevices.is_valid_session == 1, TgPhoneDevices.dep_code.is_null()))
|
||||
# dev_infos = list(
|
||||
# TgPhoneDevices.select().where(TgPhoneDevices.is_valid_session == 1, TgPhoneDevices.dep_code.is_null()))
|
||||
|
||||
|
||||
dev_infos = list(
|
||||
TgPhoneDevices.select())
|
||||
for dev_info in dev_infos[7150:]:
|
||||
executor.submit(main, dev_info)
|
||||
time.sleep(0.5) # 控制线程提交的频率
|
||||
|
||||
|
||||
# Hello! Welcome to Depinsim.
|
||||
#
|
||||
# By signing this message, you confirm ownership of the wallet address: 0xADcA20376A6CdCBd232577ac830F4116eC863DcF
|
||||
@@ -133,4 +142,4 @@ if __name__ == '__main__':
|
||||
#
|
||||
# Thank you for choosing Depinsim! Together, let's explore the exciting possibilities of the Web3 world.
|
||||
#
|
||||
# Depinsim Team
|
||||
# Depinsim Team
|
||||
|
||||
Reference in New Issue
Block a user