Skip to content

Instantly share code, notes, and snippets.

View zmarffy's full-sized avatar

Zeke Marffy zmarffy

  • USA
  • 00:20 (UTC -04:00)
  • Instagram zmarffy
View GitHub Profile
@zmarffy
zmarffy / gghat.py
Last active August 30, 2023 11:41
Generate a GitHub personal access token using Selenium (because why not)
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from os.path import devnull
options = Options()
options.headless = True
driver = None
username = "somehow get a username into here"
password = "somehow get a password into here"
driver = webdriver.Firefox(service_log_path=devnull, options=options)
try: