Skip to content

Commit

Permalink
[SCRAPER]: Websocket additional reconnection
Browse files Browse the repository at this point in the history
  • Loading branch information
amadolid committed Jan 10, 2024
1 parent e965936 commit 5430b14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jaseci_ai_kit/jac_misc/jac_misc/scraper/async_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ async def scrape(
except Exception as e:
add_url(page, urls, error=str(e))

ws.create_connection()
ws.notify_client(target, pages, urls, {"url": url, "status": "failed"})

await browser.close()

content = " ".join(content.split())
Expand Down

0 comments on commit 5430b14

Please sign in to comment.