15 lines
374 B
Python
15 lines
374 B
Python
import asyncio
|
|
from crawl4ai import AsyncWebCrawler
|
|
|
|
async def main():
|
|
async with AsyncWebCrawler() as crawler:
|
|
result = await crawler.arun(
|
|
url="https://the912.co.kr/"
|
|
)
|
|
|
|
print("SUCCESS:", result.success)
|
|
print("URL:", result.url)
|
|
print("\n--- MARKDOWN ---")
|
|
print(result.markdown[:2000])
|
|
|
|
asyncio.run(main()) |