GithubHelp home page GithubHelp logo

dop's Introduction

DopTestnet

测试网任务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]
            mail = await get_mail()
            
            _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(email=mail, pk=pk, referral=code, auth_token=_auth_tokn, proxy=_nstproxy)
            
            try:
                my_code = await dop.get_my_code()
                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:
                z.write(log_str)

if __name__ == '__main__':
    _referral = 'ZdbWvzM' # 大号邀请码
    _file_name = 'tw_bind.txt' # 执行make.py重新生成的文件
    _loop_invite = True # 默认滚动邀请,一个号跑完任务,无论是否一次成功,自动变成邀请人,邀请下一个号做任务,False则只用大号邀请码作为邀请人
    
    asyncio.run(main(_file_name, _referral, _loop_invite))

其他 ✔️

推特绑定接口经常出错,可能是账号或者代理问题

📧 Contacts

  • 推特 - @shawngmy
  • tks for following,if u want get more info

dop's People

Contributors

satisfywithmylife avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.