MCPcopy
hub / github.com/unclecode/crawl4ai / close

Method close

crawl4ai/async_crawler_strategy.py:139–147  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

137 await self.execute_hook('on_browser_created', self.browser)
138
139 async def close(self):
140 if self.sleep_on_close:
141 await asyncio.sleep(0.5)
142 if self.browser:
143 await self.browser.close()
144 self.browser = None
145 if self.playwright:
146 await self.playwright.stop()
147 self.playwright = None
148
149 def __del__(self):
150 if self.browser or self.playwright:

Callers 13

__aexit__Method · 0.95
__del__Method · 0.95
init_dbFunction · 0.45
alter_db_add_screenshotFunction · 0.45
get_cached_urlFunction · 0.45
cache_urlFunction · 0.45
get_total_countFunction · 0.45
clear_dbFunction · 0.45
flush_dbFunction · 0.45
update_existing_recordsFunction · 0.45
kill_sessionMethod · 0.45
take_screenshotMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected