スキル一覧に戻る
DimiDumo

scrape-artist

by DimiDumo

0🍴 0📅 2026年1月9日
GitHubで見るManusで実行

SKILL.md


name: scrape-artist description: Scrape a specific Instagram artist's profile and recent posts. Use when the user wants to scrape a known artist (e.g., "/scrape-artist username", "scrape @artistname"). Downloads profile data, recent posts, and artwork images to database.

Scrape Artist

Scrape an Instagram artist's profile and recent posts, saving everything to the database.

Usage

/scrape-artist <username>

Workflow

1. Create and start job

bun run cli job create artist <username>
bun run cli job start <job_id>

2. Navigate to profile

navigate to https://www.instagram.com/<username>/

Wait 3 seconds for load.

3. Extract profile data

Use JavaScript to get: username, full name, bio, followers, following, posts count, verified status.

4. Save artist

bun run cli db save-artist '{"username": "<username>", "fullName": "<name>", "bio": "<bio>", "followersCount": <n>, "followingCount": <n>, "postsCount": <n>, "isVerified": false}'

5. Extract posts from grid (Fast Method)

Run JavaScript to log URLs and get captions:

var posts = document.querySelectorAll('a[href*="/p/"]');
var data = [];
for(var i=0; i<10 && i<posts.length; i++){
  var a = posts[i];
  var img = a.querySelector('img');
  if(img && img.src){
    var sc = a.href.split('/p/')[1].split('/')[0];
    console.log('IMGURL:' + sc + ':' + img.src);
    data.push({shortcode: sc, alt: img.alt || ''});
  }
}
JSON.stringify(data)

Read URLs from console:

read_console_messages(tabId, pattern="IMGURL", limit=20)

6. Download images

mkdir -p ./data/images/<username>
curl -s -o "./data/images/<username>/<shortcode>_0.jpg" "<image_url>"

7. Save posts

bun run cli db save-post '{"shortcode": "<sc>", "artistUsername": "<user>", "postType": "image", "caption": "<alt>"}'
bun run cli db update-post-image "<shortcode>" "./data/images/<username>/<shortcode>_0.jpg"

8. Complete job

bun run cli job complete <job_id> <posts_scraped>

Error Handling

bun run cli job fail <job_id> "<error_message>"

Common issues:

  • Profile not found: Username doesn't exist or is private
  • Login required: User needs to authenticate in Chrome
  • Rate limited: Increase delay between requests

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です