ontology
This commit is contained in:
15
참고/test_crawl4ai.py
Normal file
15
참고/test_crawl4ai.py
Normal file
@@ -0,0 +1,15 @@
|
||||
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())
|
||||
Reference in New Issue
Block a user