1

I Am using Scrapy with scrapySelenium but the scrapy selenium starts with a headless browser but for some purpose i need to start it with head so i can keep seeing what my scrapy does in the browser how to turn off headless arguments passed in settings of scrapy

this is what i copied in the settings it is headless as you can see but want to see the browser open up with Scrapy Selenium is there anyway from shutil import which

SELENIUM_DRIVER_NAME = 'chrome' SELENIUM_DRIVER_EXECUTABLE_PATH = which('chromedriver') SELENIUM_DRIVER_ARGUMENTS=['-headles'] # '--headless' if using chrome instead of firefox

1 Answers1

2

Delete the SELENIUM_DRIVER_ARGUMENTS = ['--headless'] from the settings.py.

With selenium webdriver you can pass arguments and this argument makes sure that it is a headless browser.

AaronS
  • 2,245
  • 2
  • 6
  • 16
  • Could you click the tick on the left hand side of my post to make it the accepted answer? Thanks – AaronS Jul 13 '20 at 13:22