شعار Zerox Ins Photo Downloader

Zerox Ins Photo Downloader

المجتمع
ZeroxZhang
zerox-ins-photo-downloader

نزّل كل الصور من صفحة ملف شخصي على Instagram إلى القرص المحلي، مرتبة حسب وقت النشر. استخدم هذه المهارة كلما شارك المستخدم رابط ملف شخصي على Instagram (instagram.com/<username>/) وطلب تنزيل الصور أو حفظها أو نسخها احتياطيًا، أو ذكر أنه يريد حفظ صور حساب محليًا، أو طلب استخراج الوسائط من ملف Instagram. تتولى هذه المهارة استخراج ملفات تعريف الارتباط من Chrome بعد تسجيل الدخول، والتمرير في المتصفح لجمع كل المنشورات، ثم تنزيلها بترتيب زمني. استخدمها حتى لو قال المستخدم فقط «نزّل صور هذا الحساب» دون ذكر Instagram — فإذا كان الرابط يبدأ بـ instagram.com، فاستخدمها.

Add to TypingMind

نظرة عامة

الناشرZeroxZhang
المستودعzerox-skills
اسم المهارةzerox-ins-photo-downloader
النجوم
40
التفريعات
5
الملفات المرفقة
3
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 3

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها ZeroxZhang على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Zerox Ins Photo Downloader في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/ZeroxZhang/zerox-skills/tree/main/zerox-ins-photo-downloader
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ZeroxZhang/zerox-skills.git /tmp/zerox-skills
mkdir -p .claude/skills
cp -r /tmp/zerox-skills/zerox-ins-photo-downloader .claude/skills/zerox-ins-photo-downloader
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Zerox Ins Photo Downloader في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Zerox Ins Photo Downloader تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Zerox Ins Photo Downloader بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Instagram Photo Downloader

Downloads every photo from an Instagram profile into a local folder, with filenames prefixed by publish time so that sorting by name equals sorting by publish time.

When to use

  • User shares an https://www.instagram.com/<username>/ link and wants the photos.
  • User wants to back up / save / download an account's images locally.
  • User wants photos ordered by publish date.

Prerequisites (host machine)

  • macOS with Google Chrome installed and the user logged into Instagram in Chrome (any profile that has visited instagram.com works; the Default profile is tried first).
  • Python 3 with pycryptodome and requests (install once: python3 -m venv .venv && .venv/bin/pip install pycryptodome requests pillow).
  • Node.js ≥ 18 with the playwright package resolvable, and a Playwright Chromium build cached (see the collect script's auto-detection; if missing, npx playwright install chromium).

Workflow

Run these three scripts in order from the skill's scripts/ directory. The scripts are self-contained: each takes explicit paths via CLI flags, so you can keep intermediate files anywhere (e.g. the user's workspace).

Step 1 — Extract the login cookies

bash
python extract_cookies.py --domain instagram.com --out cookies.json

This decrypts Chrome's cookie DB (Keychain key + PBKDF2 + AES-CBC) and writes a flat JSON map. It strips the shared 32-byte prefix that new Chrome versions add to every cookie value — do not remove that logic; without it the sessionid comes out as garbage and Instagram rejects the session.

Expect output like OK: 6 cookies extracted and a sessionid line. If it fails with "no cookies found", the user is not logged in — ask them to log in and retry. Never ask the user to paste a sessionid; extracting from Chrome is the whole point.

Step 2 — Collect all post metadata by scrolling

bash
node collect_posts.js <username> --cookies cookies.json --out posts_meta.json

The script launches headless Chromium with the extracted cookies, opens the profile page, scrolls to the bottom repeatedly, and intercepts the /graphql/query POST responses carrying xdt_api__v1__feed__user_timeline_graphql_connection. Each edge's node has everything needed: code (shortcode), taken_at (unix seconds), and image_versions2.candidates (image URLs) or carousel_media (multi-image posts). The script dedupes by shortcode and stops when has_next_page is false and the page height stops growing.

Why the browser approach is required: Instagram's lightweight API endpoints are locked down — web_profile_info returns only the post count with empty edges, feed/user returns empty items, and the old GraphQL query hashes return HTTP 400. Scrolling a real browser is the reliable path. Do not waste time trying the blocked endpoints.

The script prints a running count (e.g. captured 12 posts, has_next: true) and finishes with FINAL: collected N posts. Verify N is positive before downloading.

Optional flags: --chromium <path> to point at a specific browser binary, --max-scrolls <n> for very large accounts.

Step 3 — Download and sort by publish time

bash
python download_photos.py --meta posts_meta.json --cookies cookies.json --out instagram_photos

For each post it picks the largest image candidate, expands carousels into individual files, skips videos (media_type == 2), and names files:

20140618_214538_pYzdmAqFNU.jpg     <- single photo
20190502_032203_Bw7nVQVFZwC_2.jpg  <- 2nd image of a carousel

Because the filename begins with YYYYMMDD_HHMMSS, sorting the folder by filename sorts by publish time (verified ascending). The script reuses files that already exist, so re-running is safe.

Verification (always do this)

After Step 3 completes, verify before reporting success:

  1. Count check — expected images = posts without carousels + sum of carousel children (videos excluded). Compare to files downloaded. If the profile said 72 posts and you have 82 jpgs with 6 carousels, that's right.
  2. File validity — confirm every file is a real image:
    bash
    file instagram_photos/*.jpg | grep -cv "JPEG image data"   # expect 0
  3. Ordering — confirm timestamps are non-decreasing when sorted by name.
  4. Spot check — open the first, middle, and last image to make sure they aren't placeholders or error pages.

Troubleshooting

  • "no cookies found" — user isn't logged into Instagram in Chrome.
  • FINAL collected 0 posts — session expired or Instagram served a challenge/login wall; re-extract cookies (Step 1) and retry. If the account is private, only followers can see posts.
  • Playwright can't find a browser — the script auto-detects ~/Library/Caches/ms-playwright/chromium-*; if none, run npx playwright install chromium.
  • Some downloads fail (FAIL lines) — CDN links can 404 if stale; re-run the download script; existing files are skipped, only missing ones retry.
  • macOS permission prompts — the Keychain read may pop a dialog the first time; the user should click "Allow".

Security note

The extracted cookies.json contains the user's login session. It is sensitive — tell the user they may delete it after the download finishes. Never share it, and don't write it into chat output.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Zerox Ins Photo Downloader؟

نزّل كل الصور من صفحة ملف شخصي على Instagram إلى القرص المحلي، مرتبة حسب وقت النشر. استخدم هذه المهارة كلما شارك المستخدم رابط ملف شخصي على Instagram (instagram.com/<username>/) وطلب تنزيل الصور أو حفظها أو نسخها احتياطيًا، أو ذكر أنه يريد حفظ صور حساب محليًا، أو طلب استخراج الوسائط من ملف Instagram. تتولى هذه المهارة استخراج ملفات تعريف الارتباط من Chrome بعد تسجيل الدخول، والتمرير في المتصفح لجمع كل المنشورات، ثم تنزيلها بترتيب زمني. استخدمها حتى لو قال المستخدم فقط «نزّل صور هذا الحساب» دون ذكر Instagram — فإذا كان الرابط يبدأ بـ instagram.com، فاستخدمها.

لماذا تستخدم Zerox Ins Photo Downloader على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Zerox Ins Photo Downloader عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Zerox Ins Photo Downloader في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/ZeroxZhang/zerox-skills/tree/main/zerox-ins-photo-downloader. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Zerox Ins Photo Downloader؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Zerox Ins Photo Downloader؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Zerox Ins Photo Downloader معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Zerox Ins Photo Downloader مجانية؟

نشرها ZeroxZhang على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇