技能 firecrawl-interact
🌐

firecrawl-interact

安全 ⚙️ 外部命令🌐 網路存取📁 檔案系統存取

使用即時瀏覽器與網頁互動

靜態爬蟲在內容需要 JavaScript 互動才能顯示時會失敗。此技能讓您控制即時瀏覽器來點擊按鈕、填寫表單、登入網站,並從動態頁面提取資料。

支援: Claude Codex Code(CC)
🥉 72 青銅
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「firecrawl-interact」。 firecrawl interact --prompt "Click the contact button and extract the phone number"

預期結果:

Successfully clicked the contact button. Extracted phone number: +1-555-0123

正在使用「firecrawl-interact」。 firecrawl scrape "https://app.example.com/login" --profile my-app firecrawl interact --prompt "Fill in email with user@example.com and click login"

預期結果:

Login successful. Profile saved. Subsequent scrapes will maintain authenticated session.

安全審計

安全
v1 • 4/29/2026

Security evaluation confirms this skill is safe for publication. All 31 static findings are false positives. The static analyzer misidentified markdown CLI command documentation as Ruby backtick execution, example URLs as hardcoded network endpoints, and markdown relative links as path traversal vulnerabilities. The skill uses the firecrawl CLI tool to control a live browser session, which is the intended and documented functionality. No malicious intent detected.

1
已掃描檔案
84
分析行數
7
發現項
1
審計總數

高風險問題 (1)

Static Scanner Misidentification: External Commands
The static analyzer flagged 19 locations as 'Ruby/shell backtick execution' at lines 17, 20, 24, 39-50, 54, 56, 64, 68, 70, 74-76. These are markdown code blocks containing firecrawl CLI command examples like 'firecrawl scrape', 'firecrawl interact'. The scanner detected backtick syntax but incorrectly identified these as Ruby execution patterns.
低風險問題 (3)
Static Scanner Misidentification: Hardcoded URLs
The static analyzer flagged 3 locations as 'Hardcoded URL' at lines 58, 62, 69. These are example URLs like 'https://app.example.com/login' used in documentation to demonstrate the --profile feature. Example URLs in documentation are not security vulnerabilities.
Static Scanner Misidentification: Path Traversal
The static analyzer flagged 3 locations as 'Path traversal sequence' at lines 81, 82, 83. These are markdown relative links to related skill documentation files: '../firecrawl-scrape/SKILL.md', '../firecrawl-search/SKILL.md', '../firecrawl-agent/SKILL.md'. This is standard markdown linking, not path traversal vulnerability.
Static Scanner Misidentification: Browser Storage Access
The static analyzer flagged line 54 as 'Browser storage access'. This line documents the --profile feature which persists browser state (cookies, localStorage). This is a documented product feature for authenticated scraping, not a vulnerability.
審計者: claude

品質評分

38
架構
100
可維護性
87
內容
50
社群
89
安全
91
規範符合性

你能建構什麼

自動化登入和驗證爬蟲

使用瀏覽器配置文件登入需要密碼的網站。儲存工作階段狀態,包括 cookies 和 localStorage。返回已驗證頁面時無需每次重新登入。

處理 JavaScript 渲染的內容

當標準爬蟲返回空內容時,使用互動模式在真實瀏覽器中載入頁面。點擊載入更多按鈕、展開摺疊面板,或觸發無限捲動以顯示隱藏內容。

導航多步驟網頁流程

完成複雜的網頁工作流程,如結帳流程、入職精靈或多頁表單。每個步驟在同一瀏覽器工作階段中依序執行。

試試這些提示

點擊按鈕或連結
Click the login button on the page
填寫並提交表單
Fill in the email field with my-email@example.com and click the submit button
互動後提取資料
Click load more until all results are visible, then extract the product pricing table
導航已驗證的頁面
Open https://example.com/dashboard and extract the user statistics from the main panel

最佳實務

  • 在使用互動命令前,先執行爬蟲以建立工作階段 ID
  • 使用瀏覽器配置文件進行驗證爬蟲,以避免重複登入
  • 完成後呼叫 firecrawl interact stop 以釋放系統資源

避免

  • 不要使用互動功能進行網路搜尋,請改用搜尋命令
  • 避免長時間的互動鏈而不檢查中間結果
  • 不要跳過爬蟲步驟,互動功能需要有效的工作階段

常見問題

為什麼爬蟲返回空內容?
該頁面可能使用 JavaScript 來渲染內容。請使用互動模式在真實瀏覽器中載入頁面並與動態元素互動。
如何登入需要驗證的網站?
使用 --profile 旗標搭配爬蟲命令來儲存瀏覽器狀態。之後使用相同的配置文件名稱進行後續爬蟲,以保持驗證狀態。
如果互動逾時會發生什麼?
預設逾時為 30 秒。您可以使用 --timeout 將其增加至最多 300 秒,以處理載入緩慢的內容。
可以對多個頁面進行平行互動嗎?
可以。先對多個頁面執行爬蟲,然後使用 --scrape-id 針對特定工作階段進行互動。
如何停止已啟動的瀏覽器工作階段?
執行 firecrawl interact stop 以釋放資源。完成後務必停止工作階段,以避免記憶體洩漏。
為什麼在成功爬蟲後互動仍然失敗?
爬蟲工作階段可能已過期。請重新執行爬蟲以取得新的工作階段 ID,然後再使用互動功能。

開發者詳情

檔案結構

📄 SKILL.md