变更
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import asyncio
|
||||
from crawl4ai import AsyncWebCrawler
|
||||
async def main():
|
||||
async with AsyncWebCrawler() as crawler:
|
||||
result = await crawler.arun("https://example.com")
|
||||
print(result.markdown[:300]) # 打印前 300 个字符
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(main())
|
||||
Reference in New Issue
Block a user