Git Product home page Git Product logo

nlet's Introduction

nlet

Short (n letters, get it? (realistically four lol)) Github usernames so you can impress all the ladies

Why?

I wanted a cool (short) username for everyone to see how cool i am

How?

Other such scripts that I've seen tend to check the availability of a username either by checking whether or not the respective profile page is a 404 or by using the API (ew xd). This has a few issues:

  • certain usernames are reserved or something - the profile page is a 404 (no account with that username exists) but you still can't register them. Thus you get a bunch of false positives such as sex, ss and api and even some completely nonsensical ones that are just random characters
  • the api limits the amount of requests per hour. sure, you can generate throwaway accounts automatically (easiest captcha in the world) and use those to rotate tokens but that's annoying and maybe even a bit rude)
  • it's kinda sorta quite slow

What we do here instead is emulating that part of the registration process where it asks you to enter a username:

  • no captchas, no tokens
  • no false positives
  • implemented asynchronously and with a task queue, making it quite fast
    • like "400 usernames per second on my oftentimes unusably slow connection" fast
  • blocked? just switch proxies))

Usage

Clone the repository:
git clone https://github.com/ui-1/nlet.git

Install dependencies:
pip install -r requirements.txt

Run the script, specifying the amount of letters as the only argument:
python main.py 4

bonus

here's a meme i really like i hope you enjoy it too scraping is cool source: https://twitter.com/gf_256/status/1514131084702797827

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.