0

In scrapy-playwright, how to set "headless = False". I am trying something like this.

    def start_requests(self):
        yield scrapy.Request(
            url=url, 
            callback = self.parse, 
            meta= dict(
                    playwright = True,
                    playwright_include_page = True,
                    playwright_page_coroutines = [
                    PageCoroutine("click", selector = "//input[@name='typeAheadInputField']"),
                    
                            ]
                        )
        )
        return super().start_requests()

    def parse(self, response):
        pass
Raisul Islam
  • 277
  • 2
  • 19

1 Answers1

2

settings.py

PLAYWRIGHT_LAUNCH_OPTIONS = {"headless": False}
Raisul Islam
  • 277
  • 2
  • 19