Giter VIP home page Giter VIP logo

shitkoder / discord-nitro Goto Github PK

View Code? Open in Web Editor NEW
52.0 52.0 0.0 28 KB

This is discord nitro code generator and checker made with python. This will generate nitro codes and checks if the code is valid or not. If code is valid then it will print the code leaving 2 lines and if not then it will print '*'.

License: GNU General Public License v3.0

Python 100.00%
discord discord-nitro discord-nitro-checker discord-nitro-claimer discord-nitro-gen discord-nitro-generator discord-nitro-sniper

discord-nitro's People

Contributors

shitkoder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

discord-nitro's Issues

Advice

You must add a function to add procies connectors, if you don't do it all the codes will not work

Check this out

I made the code automatic and made it so it doesn't spam the console. It only sends a message in the console when it starts for the first time, and when a nitro code that works gets generated. Here are my changes, feel free to use, or ignore. The chances of getting a discord nitro out of this is low, but at least with how I updated the code it'll be faster.

I removed most of the print functions, that way the while loop doesn't spam the console lol, otherwise I would have kept them in.

import requests
import random
import string

while True:
  num = 10
  with open("Nitro Codes.txt", "w", encoding='utf-8') as file:

      for i in range(num):
          code = "".join(random.choices(
              string.ascii_uppercase + string.digits + string.ascii_lowercase,
              k = 16
          ))

          file.write(f"https://discord.gift/{code}\n")


  with open("Nitro Codes.txt") as file:
      for line in file.readlines():
          nitro = line.strip("\n")

          url = f"https://discordapp.com/api/v9/entitlements/gift-codes/{nitro}?with_application=false&with_subscription_plan=true"

          r = requests.get(url)

          if r.status_code == 200:
              print(f"\n\n Valid | {nitro}\n\n") #If the nitro code will be valid, it will print the code

does this work

ok this might work but the thing is that it is pulling nitro links and putting it to endpoint,isnt the code supposed to be placed there???

Can not works.

Since the file ("Nitro Codes.txt") is full of "https://discordgift/{code}", in the following loop:

for line in file.readlines():
    nitro = line.strip("\n")

nitro is in the same format (https://...), so

url = f"https://discordapp.com/api/v9/entitlements/gift-codes/{nitro}?with_application=false&with_subscription_plan=true"

creates an url that looks very weird, that will throw a 404 error at any times.

There's another problem: rate limits
Discord is hard limiting this endpoint, so it will blocks like 9/10 codes

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.