I've written a script which opens Chromium and keeps it open for a set time, but I want to be able to set a proxy within the python script before opening Chromium. Is this possible? I've googled for some time, but I can't find how to do it.
Thanks in advance.
import os
from time import sleep
import webbrowser
import random
import time
timeDelay = random.randrange(57, 100)
def search():
#new browser object
chrome = webbrowser.get('chromium-browser')
#search engine startpoint
google = chrome.open_new("https://www.google.com")
if __name__ == "__main__":
sleep(0.5)
search()
time.sleep(timeDelay)