--headless

This commit is contained in:
powe97 2024-03-05 21:14:32 -05:00
parent 4f69c1d8a0
commit a0b9081f8f
No known key found for this signature in database
GPG key ID: 7D1663B10978D1BA

View file

@ -240,7 +240,7 @@ def main():
print(f"Setting up selenium Firefox emulator", file=sys.stderr) print(f"Setting up selenium Firefox emulator", file=sys.stderr)
options = webdriver.FirefoxOptions() options = webdriver.FirefoxOptions()
# options.add_argument("--headless") options.add_argument("--headless")
user_agent = UserAgent().random user_agent = UserAgent().random
options.set_preference("general.useragent.override", user_agent) options.set_preference("general.useragent.override", user_agent)