Skip to content

A library to get a Discord user token from an email, password and optionally the TOTP secret (for 2fa)

License

Notifications You must be signed in to change notification settings

BlueSchnabeltier/discord-token-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Discord Token Extractor

About

This is a library to get a Discord user token from an email, password and optionally the TOTP secret. This is being done with Playwright (a browser automation framework).

Key Features

  • Exception catching
  • 2fa support (only for OTP)

Installation

To install Discord Token Extractor run:

pip install git+https://github.com/BlueSchnabeltier/discord-token-extractor.git

Examples

Basic Example

from asyncio import run
from discord_token_extractor import Extractor

email = "[email protected]"  # Replace with your email
password = "Password123!"  # Replace with your password
totp_secret = "1abc2defgh3ij4kl"  # Replace with your TOTP secret, if your account doesn't have 2fa you don't have to specify it as a parameter

extractor = Extractor(email, password, totp_secret)  # Defines an extractor

# SYNC VERSION
def main(extractor: Extractor):
    token = extractor.sync_extract_token()  # Extracts the token

    print(token)

main(extractor)

# ASYNC VERSION
async def main(extractor: Extractor):
    token = await extractor.async_extract_token()  # Extracts the token

    print(token)

run(main(extractor))

About

A library to get a Discord user token from an email, password and optionally the TOTP secret (for 2fa)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages