def start_requests(self):
capabilities_chrome = {
'browserName': 'chrome',
'proxy': {
'proxyType': 'manual',
'httpProxy': self.settings['HTTP_PROXY']
},
'goog:chromeOptions': {
'args': [
'--disable-extensions',
'--disable-infobars',
'-–disable-web-security',
'--disable - gpu'
],
'prefs': {
'download.prompt_for_download': False,
'plugins.always_open_pdf_externally': True,
'safebrowsing_for_trusted_sources_enabled': False,
}
}
}
driver = webdriver.Remote(
command_executor='
http://192.168.1.111:4444/wd/hub',
desired_capabilities=capabilities_chrome)
driver.set_script_timeout(30000)
driver.get(self.start_urls)