高级抓取高级
动态 SPA 抓取器
抓取需要浏览器交互的、高度依赖 JavaScript 的单页应用。
MCP 配置
{
"tools": [
{
"name": "scrape_with_actions",
"params": {
"url": "https://spa-app.com/dashboard",
"actions": [
{
"type": "wait",
"selector": ".data-loaded"
},
{
"type": "click",
"selector": ".load-more"
},
{
"type": "wait",
"duration": 2000
}
]
}
},
{
"name": "extract_content",
"params": {
"format": "markdown"
}
}
]
}工作原理
1
scrape_with_actions
5 credits2
extract_content
2 credits预计总计:每次运行约 7 credits
标签
SPAjavascriptdynamicbrowser-automation