#!/usr/bin/env python3
import time
from selenium import webdriver
from selenium.webdriver.common.proxy import *

def main():
    options = webdriver.ChromeOptions()
    options.binary_location = "/usr/bin/brave-browser"
    options.accept_untrusted_certs = True
#    options.add_argument("--headless")
    myProxy = "0.0.0.0:85"
    options.proxy = Proxy({
        'proxyType': ProxyType.MANUAL,
        'httpProxy': myProxy,
        'sslProxy': myProxy,
        'noProxy': ''
    })
    driver = webdriver.Chrome(options=options)
    url = input("url: ")
    driver.get(url)
    time.sleep(999)
#    print(driver.page_source)
    driver.quit()

if __name__=="__main__":
    main()
