Skip to content

[Instagram] Config, copy & paste #5602

Description

@Aristarchus-IV

Figured out what was wrong.

This is the config I put together.

  • You just need to fill the missing information, your info (base-directory, cookies, archive, user-agent).
  • There's no "tagged" subcategory, and I would not reccommend adding it (especially if you download popular accounts).
  • Accounts who have "Co-Author" posts will create a new folder with the original author's username (in your base-directory). You can sort these or keep them in there.
  • Don't put the "reels" subcategory (in the "include" option) after the "posts" subcategory, you won't have a reels folder or else, since "reels" are also "posts".
  • Download "Visual Studio Code" if you are having JSONDecodeError problems.

{
    "extractor": {
        "base-directory": "--",
        "parent-directory": false,
        "cookies": [
            "--"
        ],
        "archive": "--",
        "user-agent": "--",
        "skip": true,
        "sleep-429": 60,
        "retries": 4,
        
        "instagram": {
            "api": "rest",
            "include": ["stories", "reels", "posts", "highlights", "avatar"],
            "order-files": "asc",
            "order-posts": "asc",
            "previews": true,
            "sleep": [
                2.0,
                10.0
            ],
            "sleep-request": [
                6.0,
                12.0
            ],
            "videos": true,
            "posts": {
                "directory": [
                    "Instagram",
                    "{username}",
                    "Posts"
                ],
                "filename": {
                    "count > 1": "{username} - {date:%Y-%m-%d %H.%M.%S} - {post_shortcode} - {sidecar_media_id:?//}~{media_id}_{num}.{extension}",
                    "": "{username} - {date:%Y-%m-%d %H.%M.%S} - {post_shortcode} - {sidecar_media_id:?//}~{media_id}.{extension}"
                }
            },
            "reels": {
                "directory": [
                    "Instagram",
                    "{username}",
                    "Reels"
                ],
                "filename": "{username} - {date:%Y-%m-%d %H.%M.%S} - {post_shortcode} - {media_id}.{extension}"
            },
            "stories": {
                "directory": [
                    "Instagram",
                    "{username}",
                    "Stories"
                ],
                "filename": "{username} - {date:%Y-%m-%d %H.%M.%S} - {post_shortcode} - {media_id}.{extension}"
            },
            "highlights": {
                "directory": [
                    "Instagram",
                    "{username}",
                    "Highlights",
                    "{highlight_title}"
                ],
                "filename": "{username} - {date:%Y-%m-%d %H.%M.%S} - {post_shortcode} - {media_id}.{extension}"
            },
            "avatar": {
                "directory": [
                    "Instagram",
                    "{username}",
                    "Avatar"
                ],
                "filename": "{username} - {post_shortcode} - {media_id} - {owner_id}.{extension}"
            },
            "postprocessors": [
            {
                "directory": "_Metadata",
                "blacklist": ["*:avatar"],
                "name": "metadata",
                "event": "post",
                "filename": "{username} - {date:%Y-%m-%d %H.%M.%S} - {post_shortcode}.json",
                "mode": "json"
            },
            {
                "directory": "_Info",
                "whitelist": ["*:avatar"],
                "name": "metadata",
                "event": "post",
                "filename": "{username} - {post_shortcode}.json",
                "mode": "json"
            },
            {
                "directory": "_Info",
                "whitelist": ["*:avatar"],
                "name": "metadata",
                "event": "post",
                "content-format": "https://instagram.com/{username}",
                "filename": "{username} - {post_shortcode} - {owner_id}.txt",
                "mode": "custom"
            },
            {
                "directory": "_Description",
                "whitelist": ["*:posts", "*:reels"],
                "name": "metadata",
                "event": "post",
                "content-format": "[URL]\n\n{post_url}\n\n\n[Description]\n\n{description}\n\n\n[Co-Author & Their Owner ID]\n\n{coauthors[N]['username']} - {coauthors[N]['id']}",
                "filename": "{username} - {date:%Y-%m-%d %H.%M.%S} - {post_shortcode}.txt",
                "mode": "custom"
            }
            ]
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions