import asyncio

from crawl4ai import *


async def main():
    async with AsyncWebCrawler() as crawler:
        result = await crawler.arun(
            url="https://www.nbcnews.com/business",
        )
        print(result.markdown)
        print(result.title)


if __name__ == "__main__":
    asyncio.run(main())
