From c67bb8ac47c0af3ee78ef7f55642a85c701c2565 Mon Sep 17 00:00:00 2001 From: Adrian Date: Sun, 9 Aug 2026 18:15:37 +0200 Subject: [PATCH] Document BROWSER=wslview for open_in_browser under WSL (#7965) --- scrapy/utils/response.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scrapy/utils/response.py b/scrapy/utils/response.py index 7747a7b9b..b3622c159 100644 --- a/scrapy/utils/response.py +++ b/scrapy/utils/response.py @@ -90,6 +90,10 @@ def open_in_browser( def parse_details(self, response): if "item name" not in response.text: open_in_browser(response) + + On the Windows Subsystem for Linux, set the ``BROWSER`` environment + variable to `wslview `_ to open the + response in a Windows browser, which cannot read Linux paths otherwise. """ # circular imports from scrapy.http import HtmlResponse, TextResponse # noqa: PLC0415