We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02b4bb2 commit 4bc9343Copy full SHA for 4bc9343
llmstack/data/apis.py
@@ -502,7 +502,8 @@ def extract_urls(self, request):
502
runner_url = f"{settings.RUNNER_HOST}:{settings.RUNNER_PORT}"
503
urls = [url]
504
505
- with WebBrowser(runner_url, html=True, interactive=False) as browser:
506
- urls.extend(browser.get_links(url=url))
+ with WebBrowser(runner_url, html=True, interactive=False, tags_to_extract=["a"]) as browser:
+ urls.extend([entry.url for entry in browser.get_links(url=url)])
507
508
+ urls = list(set(filter(lambda x: x.startswith("http"), urls)))
509
return DRFResponse({"urls": urls})
0 commit comments