()
| 56 | print(result.markdown[:500]) # Print first 500 characters |
| 57 | |
| 58 | async def simple_example_with_css_selector(): |
| 59 | print("\n--- Using CSS Selectors ---") |
| 60 | async with AsyncWebCrawler(verbose=True) as crawler: |
| 61 | result = await crawler.arun( |
| 62 | url="https://www.nbcnews.com/business", |
| 63 | css_selector=".wide-tease-item__description", |
| 64 | bypass_cache=True, |
| 65 | ) |
| 66 | print(result.markdown[:500]) # Print first 500 characters |
| 67 | |
| 68 | async def use_proxy(): |
| 69 | print("\n--- Using a Proxy ---") |
no test coverage detected
searching dependent graphs…