Scrapy, a fast high-level web crawling & scraping framework for Python.
Document BROWSER=wslview for open_in_browser under WSL (#7965)
Adrianc67bb8ac47c0
diff --git a/scrapy/utils/response.py b/scrapy/utils/response.pyindex 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 <https://github.com/wslutilities/wslu>`_ to open the+ response in a Windows browser, which cannot read Linux paths otherwise."""# circular importsfrom scrapy.http import HtmlResponse, TextResponse # noqa: PLC0415