Files
AI/참고/test_crawl4ai.py

15 lines
374 B
Python
Raw Permalink Normal View History

2026-05-13 19:57:34 +09:00
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())