write agent.py
This commit is contained in:
3
agent.py
3
agent.py
@@ -272,11 +272,12 @@ class SeleniumbaseWebsiteScraper(A2AAgent[SeleniumbaseWebsiteScraperConfig, NoAu
|
||||
return {"status": "invalid_input", "items": [], "saved_paths": [], "warnings": ["url is required"], "screenshots": []}
|
||||
|
||||
# Initial validation (if selectors are provided)
|
||||
selectors = seed_selectors or {"title": "title"}
|
||||
if selectors:
|
||||
v = _validate_inputs(
|
||||
url=start_url,
|
||||
selectors=selectors,
|
||||
max_pages=per_pass_max_pages,
|
||||
max_pages=max_pages,
|
||||
max_pages_limit=self.config.max_pages_limit,
|
||||
wait_seconds=wait_seconds,
|
||||
output_format=output_format,
|
||||
|
||||
Reference in New Issue
Block a user