Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use selenium experimental options in selenium driver arguments #73

Open
iampritamraj opened this issue Aug 25, 2020 · 3 comments

Comments

@iampritamraj
Copy link

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

@youralmight
Copy link

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

@iampritamraj
Copy link
Author

How can i?can you please any example.thnaks

@iampritamraj
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants