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

Method awarmup

crawl4ai/async_webcrawler.py:48–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 await self.crawler_strategy.__aexit__(exc_type, exc_val, exc_tb)
47
48 async def awarmup(self):
49 if self.verbose:
50 print("[LOG] 🌤️ Warming up the AsyncWebCrawler")
51 await async_db_manager.ainit_db()
52 await self.arun(
53 url="https://google.com/",
54 word_count_threshold=5,
55 bypass_cache=False,
56 verbose=False,
57 )
58 self.ready = True
59 if self.verbose:
60 print("[LOG] 🌞 AsyncWebCrawler is ready to crawl")
61
62 async def arun(
63 self,

Callers 1

__aenter__Method · 0.95

Calls 2

arunMethod · 0.95
ainit_dbMethod · 0.80

Tested by

no test coverage detected