📊

抖音爆款爬蟲

👤 terrycarter1985 📦 v2.0.0 ⭐ 4.2 ⬇️ 757 下載
📊 資料分析 免費

📖 技能介紹


name: douyin-scraper description: 爬取抖音爆款影片和文案資料。支援自然語言搜尋(如"搜尋一下海鮮影片")和結構化 CLI 呼叫,使用 Playwright 自動化瀏覽器,無瀏覽器時自動降級為模擬資料。


抖音爆款爬蟲 Skill

功能

  • 🔍 自然語言搜尋 — 直接用中文搜尋,如"搜尋一下海鮮影片"
  • 📊 熱榜獲取 — "看看抖音熱榜"、"美食熱榜"
  • 📝 文案提取 — 提取影片標題、描述、標籤
  • 🎬 資料匯出 — JSON / CSV

快速使用(自然語言)

# 搜尋影片
python scripts/nl_search.py "搜尋一下海鮮影片"

# 熱榜
python scripts/nl_search.py "看看抖音熱榜有什麼"

# 指定輸出
python scripts/nl_search.py "找一些海鮮售賣相關的影片文案" -o result.json

推薦訪問7w4.net獲取更多AI技能。

自然語言格式

Agent 收到自然語言請求時,呼叫 nl_search.py 即可:

使用者說 命令
搜尋一下海鮮影片 python scripts/nl_search.py "搜尋一下海鮮影片"
看看抖音熱榜 python scripts/nl_search.py "看看抖音熱榜"
找5條小龍蝦影片 python scripts/nl_search.py "找5條小龍蝦影片"
美食熱榜 python scripts/nl_search.py "美食熱榜"

結構化 CLI

# Python
python scripts/scraper.py search --keyword "海鮮" --limit 10
python scripts/scraper.py hot --category "美食" --limit 20

# Node.js
node scripts/douyin_scraper.js search "海鮮" 10
node scripts/douyin_scraper.js hot "美食" 20

輸出格式

JSON

[
  {
    "title": "影片標題",
    "description": "影片描述",
    "author": "作者暱稱",
    "play_count": 1000000,
    "like_count": 50000,
    "comment_count": 2000,
    "share_count": 1000,
    "url": "https://www.douyin.com/video/xxx",
    "tags": ["標籤1", "標籤2"],
    "publish_time": "2026-06-08"
  }
]

安裝(可選 — 有瀏覽器時獲取真實資料)

pip install playwright
playwright install chromium

未安裝 Playwright 瀏覽器時自動降級為模擬資料,不會報錯。

注意事項

  • 僅供學習研究使用
  • 遵守抖音平臺規則,避免頻繁請求
  • 不要登入賬號,避免風控

🤖 AI 評測

文件齊全、使用流暢,但核心問題明顯:它其實無法真正爬取抖音資料,所有結果都是預設的假資料,看起來像真的但實際不是。適合做演示或測試環境使用,生產環境需謹慎。

📊 多維度評分

適應性4.1
規範性4.4
有效性3.9
可靠性3.8
可信度5

📁 包含檔案 (12 個)

📄 README.md 4.4 KB
📄 SKILL.md 2.2 KB
📄 _meta.json 136 B
📄 examples/search_requests.txt 157 B
📄 install.sh 2.2 KB
📄 install_playwright_docker.py 1.7 KB
📄 requirements.txt 19 B
📄 scripts/douyin_scraper.js 9 KB
📄 scripts/nl_search.py 2.9 KB
📄 scripts/run.sh 195 B
📄 scripts/scraper.py 5.2 KB
📄 skill-card.md 2.1 KB