fix: Add output messages for scraping process

This commit is contained in:
Paul Gauthier 2024-08-09 17:33:14 -04:00 committed by Paul Gauthier (aider)
parent 709c31fbf5
commit 2a9d181efc

View file

@ -128,6 +128,7 @@ class Commands:
self.io.tool_error("Please provide a URL to scrape.")
return
self.io.tool_output(f"Scraping {url}...")
if not self.scraper:
res = install_playwright(self.io)
if not res:
@ -140,6 +141,8 @@ class Commands:
content = self.scraper.scrape(url) or ""
content = f"{url}:\n\n" + content
self.io.tool_output(f"... done.")
if paginate:
# Use pypager to show the content
source = StringSource(content)