Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
chore: add context.close
Matt572b7e8dc57a
diff --git a/apps/playwright-service/main.py b/apps/playwright-service/main.pyindex 5d6f331ca..b4b83de9b 100644--- a/apps/playwright-service/main.py+++ b/apps/playwright-service/main.py@@ -21,6 +21,7 @@ async def root(body: UrlModel): # Using Pydantic model for request bodyawait page.goto(body.url) # Adjusted to use the url from the request body modelpage_content = await page.content() # Get the HTML content of the page+ await context.close()await browser.close()json_compatible_item_data = {"content": page_content}