scrapy-selenium icon indicating copy to clipboard operation
scrapy-selenium copied to clipboard

How to use selenium experimental options in selenium driver arguments

Open iampritamraj opened this issue 4 years ago • 3 comments

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? ScreenShot_20200825141247

iampritamraj avatar Aug 25 '20 08:08 iampritamraj

you can solve it by edit scrapy-selenium/scrapy_selenium/middlewares.py:43, temporarily.

youralmight avatar Aug 27 '20 15:08 youralmight

How can i?can you please any example.thnaks

iampritamraj avatar Sep 02 '20 04:09 iampritamraj

@deepwarmer please help me sir about this ..i am really don't understand how can i get rid out of this

iampritamraj avatar Sep 02 '20 04:09 iampritamraj