Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this the only way to get the discord token? #8

Open
AIchovy opened this issue Apr 21, 2023 · 2 comments
Open

Is this the only way to get the discord token? #8

AIchovy opened this issue Apr 21, 2023 · 2 comments

Comments

@AIchovy
Copy link

AIchovy commented Apr 21, 2023

I have two questions:

  1. Is this the only way to get the user token by Chrome developer tools?
  2. Does this token have an expired time?
@xucian
Copy link

xucian commented May 7, 2023

same question

@NDNnerd
Copy link

NDNnerd commented May 12, 2023

Arguably, no. Not sure it's more convenient. It can be automated though.

from playwright.sync_api import sync_playwright

def print_request(route, request):
    print(f"{request.method} {request.url}")
    route.continue_()

with sync_playwright() as playwright:
    browser = playwright.chromium.launch(headless=False)
    context = browser.new_context()


    context.route('**/*', print_request) # This enables request interception

    page = context.new_page()
    page.goto("https://discord.com/login")
    browser.close()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants