mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
fix: Add output messages for scraping process
This commit is contained in:
parent
709c31fbf5
commit
2a9d181efc
1 changed files with 3 additions and 0 deletions
|
@ -128,6 +128,7 @@ class Commands:
|
||||||
self.io.tool_error("Please provide a URL to scrape.")
|
self.io.tool_error("Please provide a URL to scrape.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
self.io.tool_output(f"Scraping {url}...")
|
||||||
if not self.scraper:
|
if not self.scraper:
|
||||||
res = install_playwright(self.io)
|
res = install_playwright(self.io)
|
||||||
if not res:
|
if not res:
|
||||||
|
@ -140,6 +141,8 @@ class Commands:
|
||||||
content = self.scraper.scrape(url) or ""
|
content = self.scraper.scrape(url) or ""
|
||||||
content = f"{url}:\n\n" + content
|
content = f"{url}:\n\n" + content
|
||||||
|
|
||||||
|
self.io.tool_output(f"... done.")
|
||||||
|
|
||||||
if paginate:
|
if paginate:
|
||||||
# Use pypager to show the content
|
# Use pypager to show the content
|
||||||
source = StringSource(content)
|
source = StringSource(content)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue