Spaces:
Sleeping
Sleeping
Commit
·
81e3cae
1
Parent(s):
9ad60e7
response changed
Browse files
main.py
CHANGED
@@ -123,7 +123,8 @@ async def crawl_web(request: CrawlerRequest):
|
|
123 |
filtered_links = response.text.strip().split('\n')
|
124 |
|
125 |
# Return the filtered links
|
126 |
-
return {"
|
|
|
127 |
except Exception as e:
|
128 |
print(f"Error occurred while processing the request: {e}")
|
129 |
raise HTTPException(status_code=500, detail=str(e))
|
|
|
123 |
filtered_links = response.text.strip().split('\n')
|
124 |
|
125 |
# Return the filtered links
|
126 |
+
return {"links": all_links,
|
127 |
+
"filtered_links": filtered_links}
|
128 |
except Exception as e:
|
129 |
print(f"Error occurred while processing the request: {e}")
|
130 |
raise HTTPException(status_code=500, detail=str(e))
|