()
| 28 | |
| 29 | |
| 30 | async def simple_crawl(): |
| 31 | print("\n--- Basic Usage ---") |
| 32 | async with AsyncWebCrawler(verbose=True) as crawler: |
| 33 | result = await crawler.arun(url="https://www.nbcnews.com/business") |
| 34 | print(result.markdown[:500]) # Print first 500 characters |
| 35 | |
| 36 | async def simple_example_with_running_js_code(): |
| 37 | print("\n--- Executing JavaScript and Using CSS Selectors ---") |
no test coverage detected
searching dependent graphs…