scrapy-selenium
scrapy-selenium copied to clipboard
How to use selenium experimental options in selenium driver arguments
from shutil import which
SELENIUM_DRIVER_NAME = 'chrome'
SELENIUM_DRIVER_EXECUTABLE_PATH = which('chromedriver')
prefs = {"profile.managed_default_content_settings.images": 2}
SELENIUM_DRIVER_ARGUMENTS=['--incognito',prefs]
DOWNLOADER_MIDDLEWARES = {
'scrapy_selenium.SeleniumMiddleware': 800
}
here is my code and i want to add prefs for disable image during website loading...but i am not able to load this...can i?
you can solve it by edit scrapy-selenium/scrapy_selenium/middlewares.py:43, temporarily.
How can i?can you please any example.thnaks
@deepwarmer please help me sir about this ..i am really don't understand how can i get rid out of this