Skip to main content
Glama
test_crawl4ai_op.py761 B
"""Simple integration test for the Crawl4ai-based crawler operator. The script runs `Crawl4aiOp` inside a `FinanceMcpApp` context and prints the scraped output for a fixed target URL. It is mainly intended for quick manual verification of the crawling pipeline. """ import asyncio from finance_mcp import FinanceMcpApp from finance_mcp.core.crawl import Crawl4aiOp async def main() -> None: """Execute the crawl operation for a sample stock information page.""" async with FinanceMcpApp(): # Instantiate and run the crawling operator against a THS stock page. op = Crawl4aiOp() await op.async_call(url="https://stockpage.10jqka.com.cn/601899/") print(op.output) if __name__ == "__main__": asyncio.run(main())

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FlowLLM-AI/finance-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server