🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Python aiai-scrapingautomationcrawlercrawlingcrawling-pythondatadata-extractionmcpmcp-serverplaywrightpythonscrapingselectorsstealthweb-scraperweb-scrapingweb-scraping-pythonwebscrapingxpath
fix: fixing body issue with cli view command
Karim shoair1547366c8599
diff --git a/scrapling/core/shell.py b/scrapling/core/shell.pyindex 8a38391..bc087a0 100644--- a/scrapling/core/shell.py+++ b/scrapling/core/shell.py@@ -317,7 +317,7 @@ def show_page_in_browser(page: Selector): # pragma: no covertry:fd, fname = make_temp_file(prefix="scrapling_view_", suffix=".html")- with open(fd, "w", encoding=page.encoding) as f:+ with open(fd, "wb") as f:f.write(page.body)open_in_browser(f"file://{fname}")