Created
November 24, 2017 12:53
-
-
Save wladzynski/471cbb84bb444f41d49e01bacdaf0a15 to your computer and use it in GitHub Desktop.
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
import selenium.webdriver.chrome.service as service | |
import subprocess | |
from selenium.webdriver.remote.webdriver import WebDriver | |
# Port 55000 is just an example, choose any suitable value here | |
debugging_port = 55000 | |
subprocess.Popen(['Path_to_opera_binary', '--remote-debugging-port={}'.format(debugging_port)]) | |
service = service.Service('Path_to_operadriver_binary') | |
service.start() | |
wd = WebDriver(service.service_url, {'operaOptions': {'debuggerAddress': "localhost:{}".format(debugging_port)}}) | |
wd.get('Malicious_site_URL') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment