This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import os | |
import sys | |
from random import choice | |
if len(sys.argv) > 1 and sys.argv[1] == "show": | |
from subprocess import Popen, PIPE | |
import webbrowser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.firefox.options import Options | |
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary | |
options = Options() | |
options.set_headless(True) | |
binary = FirefoxBinary("/usr/bin/firefox") #Linux. In Windows/Mac this is different | |
driver = webdriver.Firefox(firefox_options=options, firefox_binary=binary) | |
print("started firefox in headless mode") |
NewerOlder