mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +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.")
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue