测试网任务 Testnet
pip install -r requirements.txt
充值后,创建频道,复制频道名和密码,分别写入config.py的nstproxy_Channel
,nstproxy_Password
中
购买后的推特账号,放在项目的tw.txt文件内
首次执行 python make.py, 仅需执行一次
跑任务 python main.py 自动检测哪些任务已完成,完成的会跳过,可重复执行
# main.py 部分说明
async def main(file_name, code, loop_invite):
global g_fail, g_success
with open(file_name, 'r', encoding='UTF-8') as f, open('dropcoin_success.txt', 'a') as s, open('dropcoin_error.txt', 'a') as e, open('my.txt', 'a') as z: # eth----auth_token
lines = f.readlines()
for twitter in lines:
_auth_tokn = ''
t_list = twitter.split('----')
for tw in t_list:
if len(tw) == 40 and all(c in '0123456789abcdef' for c in tw):
_auth_tokn = tw
break
if not _auth_tokn:
continue
pk = t_list[1]
_nstproxy = ''
_nstproxy = f"http://{nstproxy_Channel}-residential-country_ANY-r_5m-s_BsqLCLkiVu:{nstproxy_Password}@gw-us.nstproxy.com:24125"
# _res = httpx.get('https://ip.useragentinfo.com/json', proxies={'all://': _nstproxy})
# print(_res.text)
dop = Dop(pk=pk, referral=code, auth_token=_auth_tokn, proxy=_nstproxy)
try:
my_code = await dop.get_my_code()
mail = await dop.get_my_email()
if loop_invite:
code = my_code
log_str = f'{dop.account.address}----{pk}----{mail}----{tw}----{my_code}\n'
res, k = await dop.make_task()
if res:
dop.add_log(f'任务1-7完成成功')
s.write(log_str)
else:
dop.add_log(f'任务{k}失败')
e.write(log_str)
except Exception as m:
print(f'{m}')
if __name__ == '__main__':
_referral = 'ZdbWvzM' # 大号邀请码
_file_name = 'tw_bind.txt' # 执行make.py重新生成的文件
_loop_invite = True # 默认滚动邀请,一个号跑完任务,无论是否一次成功,自动变成邀请人,邀请下一个号做任务,False则只用大号邀请码作为邀请人
asyncio.run(main(_file_name, _referral, _loop_invite))
推特绑定接口经常出错,可能是账号(比如推特注册时间限制)或者代理问题
![](https://private-user-images.githubusercontent.com/30144807/307865245-d1dae58b-9924-4cd0-9384-60505e53b7d5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1NzM4MzMsIm5iZiI6MTcyNDU3MzUzMywicGF0aCI6Ii8zMDE0NDgwNy8zMDc4NjUyNDUtZDFkYWU1OGItOTkyNC00Y2QwLTkzODQtNjA1MDVlNTNiN2Q1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDA4MTIxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTViN2RlZjBmYTUzNzBmZTI4YWU2M2E4MzY5MDQ1MTcwYTNjMDg4NTg2NDAyZDhiYTYzNzhjNGRhNmQzZGI1YWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.jqKUz2sC4dYi6t7GYNWvaDX-aHn3BH5GRWbr7QxQeRE)
- 推特 - @shawngmy
- tks for following,if u want get more info