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

Method warmup

crawl4ai/web_crawler.py:29–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 self.ready = False
28
29 def warmup(self):
30 print("[LOG] 🌤️ Warming up the WebCrawler")
31 self.run(
32 url='https://google.com/',
33 word_count_threshold=5,
34 extraction_strategy=NoExtractionStrategy(),
35 bypass_cache=False,
36 verbose=False
37 )
38 self.ready = True
39 print("[LOG] 🌞 WebCrawler is ready to crawl")
40
41 def fetch_page(
42 self,

Callers 6

get_crawlerFunction · 0.95
create_crawlerFunction · 0.95
using_crawler_hooksFunction · 0.95
test_warmupMethod · 0.45
summarize_page.pyFile · 0.45

Calls 2

runMethod · 0.95

Tested by 1

test_warmupMethod · 0.36