()
| 285 | |
| 286 | |
| 287 | def main(): |
| 288 | cprint("🌟 [bold green]Welcome to the Crawl4ai Quickstart Guide! Let's dive into some web crawling fun! 🌐[/bold green]") |
| 289 | cprint("⛳️ [bold cyan]First Step: Create an instance of WebCrawler and call the `warmup()` function.[/bold cyan]") |
| 290 | cprint("If this is the first time you're running Crawl4ai, this might take a few seconds to load required model files.") |
| 291 | |
| 292 | crawler = create_crawler() |
| 293 | |
| 294 | crawler.always_by_pass_cache = True |
| 295 | basic_usage(crawler) |
| 296 | # basic_usage_some_params(crawler) |
| 297 | understanding_parameters(crawler) |
| 298 | |
| 299 | crawler.always_by_pass_cache = True |
| 300 | screenshot_usage(crawler) |
| 301 | add_chunking_strategy(crawler) |
| 302 | add_extraction_strategy(crawler) |
| 303 | add_llm_extraction_strategy(crawler) |
| 304 | targeted_extraction(crawler) |
| 305 | interactive_extraction(crawler) |
| 306 | multiple_scrip(crawler) |
| 307 | |
| 308 | cprint("\n🎉 [bold green]Congratulations! You've made it through the Crawl4ai Quickstart Guide! Now go forth and crawl the web like a pro! 🕸️[/bold green]") |
| 309 | |
| 310 | if __name__ == "__main__": |
| 311 | main() |
no test coverage detected
searching dependent graphs…