1from selenium import webdriver
2from selenium.webdriver.opera.options import Options
3
4options = Options()
5options.binary_location = r'C:\path\to\opera.exe'
6driver = webdriver.Opera(opera_options = options, executable_path=r'C:\Utility\BrowserDrivers\operadriver.exe')
7driver.get('http://www.google.com')
8