Code Monkey home page Code Monkey logo

krunker-api's Introduction

Note: I made this as a proof of concept, if you want to contribute please see my newer version which is much better designed: https://github.com/Eli-Chandler/KrunkerAPIV2

You can sign up for capsolver here, this is what we use to solve the hcaptcha challenge: https://dashboard.capsolver.com/passport/register?inviteCode=hnpifE3ejpcE

Usage example:

To find unused usernames:

from krunkerwebsocketAPI import KrunkerWebSocket
import asyncio

async def main():
    usernames_to_check = ['sfkjadhsfalskas123', '.Floow', 'Sidney']
    capsolver_api_key = os.environ.get('CAPSOLVER_API_KEY')
    kws = KrunkerWebSocket(capsolver_api_key) # Optional but highly reccomended, otherwise you will need to solve the captcha in browser intermittently
    await kws.start()
    for username in usernames_to_check:
        response = await kws.request_profile(username)
        if not response:
            print(username, 'is available!')

if __name__ == '__main__': # Just some asyncio boilerplate
    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
    asyncio.run(main())

output: 'sfkjadhsfalskas123 is available!'

krunker-api's People

Contributors

eli-chandler avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.