{"id":20733122,"url":"https://github.com/ping/instagram_private_api_extensions","last_synced_at":"2026-03-06T22:02:24.661Z","repository":{"id":50569357,"uuid":"79453413","full_name":"ping/instagram_private_api_extensions","owner":"ping","description":"An extension module to https://github.com/ping/instagram_private_api","archived":false,"fork":false,"pushed_at":"2019-11-14T10:09:59.000Z","size":189,"stargazers_count":123,"open_issues_count":5,"forks_count":26,"subscribers_count":11,"default_branch":"master","last_synced_at":"2026-02-09T13:59:16.969Z","etag":null,"topics":["instagram","instagram-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ping.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-19T12:59:20.000Z","updated_at":"2026-01-28T16:27:52.000Z","dependencies_parsed_at":"2022-08-19T18:21:02.438Z","dependency_job_id":null,"html_url":"https://github.com/ping/instagram_private_api_extensions","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/ping/instagram_private_api_extensions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ping%2Finstagram_private_api_extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ping%2Finstagram_private_api_extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ping%2Finstagram_private_api_extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ping%2Finstagram_private_api_extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ping","download_url":"https://codeload.github.com/ping/instagram_private_api_extensions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ping%2Finstagram_private_api_extensions/sbom","scorecard":{"id":734301,"data":{"date":"2025-08-11","repo":{"name":"github.com/ping/instagram_private_api_extensions","commit":"495fb9009da29ee829691725c1704299177a0a4e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":1,"reason":"Found 3/30 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"45 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-3f63-hfp8-52jq","Warn: Project is vulnerable to: PYSEC-2021-41 / GHSA-3wvg-mj6g-m9cv","Warn: Project is vulnerable to: PYSEC-2020-77 / GHSA-3xv8-3j54-hgrp","Warn: Project is vulnerable to: PYSEC-2020-80 / GHSA-43fq-w8qq-v88h","Warn: Project is vulnerable to: GHSA-44wm-f244-xhp3","Warn: Project is vulnerable to: GHSA-4fx9-vc88-q2xc","Warn: Project is vulnerable to: PYSEC-2021-35 / GHSA-57h3-9rgr-c24m","Warn: Project is vulnerable to: PYSEC-2020-172 / GHSA-5gm3-px64-rw72","Warn: Project is vulnerable to: PYSEC-2021-331 / GHSA-7534-mm45-c74v","Warn: Project is vulnerable to: PYSEC-2021-137 / GHSA-77gc-v2xv-rvvh","Warn: Project is vulnerable to: PYSEC-2021-92 / GHSA-7r7m-5h27-29hp","Warn: Project is vulnerable to: PYSEC-2020-78 / GHSA-8843-m7mw-mxqm","Warn: Project is vulnerable to: PYSEC-2023-227 / GHSA-8ghj-p4vj-mr35","Warn: Project is vulnerable to: PYSEC-2022-10 / GHSA-8vj2-vxx3-667w","Warn: Project is vulnerable to: PYSEC-2021-36 / GHSA-8xjq-8fcg-g5hw","Warn: Project is vulnerable to: PYSEC-2021-42 / GHSA-95q3-8gr9-gm8w","Warn: Project is vulnerable to: PYSEC-2022-168 / GHSA-9j59-75qj-795w","Warn: Project is vulnerable to: PYSEC-2020-76 / GHSA-cqhg-xjhh-p8hf","Warn: Project is vulnerable to: PYSEC-2021-40 / GHSA-f4w8-cv6p-x6r5","Warn: Project is vulnerable to: PYSEC-2021-69 / GHSA-f5g8-5qq7-938w","Warn: Project is vulnerable to: PYSEC-2021-139 / GHSA-g6rj-rv7j-xwp4","Warn: Project is vulnerable to: PYSEC-2020-84 / GHSA-hj69-c76v-86wr","Warn: Project is vulnerable to: GHSA-j7hp-h8jx-5ppr","Warn: Project is vulnerable to: PYSEC-2019-110 / GHSA-j7mj-748x-7p78","Warn: Project is vulnerable to: GHSA-jgpv-4h4c-xhw3","Warn: Project is vulnerable to: PYSEC-2022-42979 / GHSA-m2vv-5vj5-2hm7","Warn: Project is vulnerable to: PYSEC-2021-37 / GHSA-mvg9-xffr-p774","Warn: Project is vulnerable to: PYSEC-2020-83 / GHSA-p49h-hjvm-jg3h","Warn: Project is vulnerable to: PYSEC-2022-8 / GHSA-pw3c-h7wp-cvhx","Warn: Project is vulnerable to: PYSEC-2021-93 / GHSA-q5hq-fp76-qmrc","Warn: Project is vulnerable to: PYSEC-2020-82 / GHSA-r7rm-8j6h-r933","Warn: Project is vulnerable to: PYSEC-2021-138 / GHSA-rwv7-3v45-hg29","Warn: Project is vulnerable to: PYSEC-2020-81 / GHSA-vcqg-3p29-xw73","Warn: Project is vulnerable to: PYSEC-2020-79 / GHSA-vj42-xq3r-hr3r","Warn: Project is vulnerable to: PYSEC-2021-70 / GHSA-vqcj-wrf2-7v73","Warn: Project is vulnerable to: PYSEC-2022-9 / GHSA-xrcv-f9gm-v42c","Warn: Project is vulnerable to: PYSEC-2021-317","Warn: Project is vulnerable to: PYSEC-2021-38","Warn: Project is vulnerable to: PYSEC-2021-39","Warn: Project is vulnerable to: PYSEC-2021-94","Warn: Project is vulnerable to: PYSEC-2023-175","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T15:17:54.650Z","repository_id":50569357,"created_at":"2025-08-22T15:17:54.651Z","updated_at":"2025-08-22T15:17:54.651Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30200756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["instagram","instagram-api"],"created_at":"2024-11-17T05:23:35.283Z","updated_at":"2026-03-06T22:02:24.641Z","avatar_url":"https://github.com/ping.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Instagram Private API Extensions\n\nAn extension module to [instagram\\_private\\_api](https://github.com/ping/instagram_private_api) to help with common tasks such as posting a photo or video.\n\n![](https://img.shields.io/badge/Python-2.7%2C%203.5-3776ab.svg?maxAge=2592000)\n[![Release](https://img.shields.io/github/release/ping/instagram_private_api_extensions.svg?colorB=ff7043)](https://github.com/ping/instagram_private_api_extensions/releases)\n[![Docs](https://img.shields.io/badge/docs-readthedocs.io-ff4980.svg?maxAge=2592000)](https://instagram-private-api-extensions.readthedocs.io/en/latest/)\n[![Build](https://img.shields.io/travis/com/ping/instagram_private_api_extensions.svg)](https://travis-ci.com/ping/instagram_private_api_extensions)\n[![Coverage](https://img.shields.io/coveralls/ping/instagram_private_api_extensions.svg)](https://coveralls.io/github/ping/instagram_private_api_extensions)\n\n## Features\n\n1. [``media``](#media): Edits a photo/video so that it complies with Instagram's requirements by:\n    * Resizing\n    * Cropping to fit the minimum/maximum aspect ratio\n    * Generating the video thumbnail image\n    * Clipping the video duration if it is too long\n    * Changing the format/encoding\n\n2. [``pagination``](#pagination): Page through an api call such as ``api.user_feed()``.\n\n3. [``live``](#live): Download an ongoing IG live stream. Requires ffmpeg installed.\n\n4. [``replay``](#replay): Download an IG live replay stream. Requires ffmpeg installed.\n\n## Documentation\n\nDocumentation is available at https://instagram-private-api-extensions.readthedocs.io/en/latest/\n\n## Install\n\nInstall with pip using\n\n```bash\npip install git+https://git@github.com/ping/instagram_private_api_extensions.git@0.3.9\n```\n\nTo update:\n\n```bash\npip install git+https://git@github.com/ping/instagram_private_api_extensions.git@0.3.9 --upgrade\n```\n\nTo update with latest repo code:\n\n```bash\npip install git+https://git@github.com/ping/instagram_private_api_extensions.git --upgrade --force-reinstall\n```\n\n## Usage\n\n### [Media](instagram_private_api_extensions/media.py)\n```python\nfrom instagram_private_api import Client, MediaRatios\nfrom instagram_private_api_extensions import media\n\napi = Client('username', 'password')\n\n# post a photo\nphoto_data, photo_size = media.prepare_image(\n    'pathto/my_photo.jpg', aspect_ratios=MediaRatios.standard)\napi.post_photo(photo_data, photo_size, caption='Hello World!')\n\n# post a video\nvid_data, vid_size, vid_duration, vid_thumbnail = media.prepare_video(\n    'pathto/my_video.mp4', aspect_ratios=MediaRatios.standard)\napi.post_video(vid_data, vid_size, vid_duration, vid_thumbnail)\n\n# post a photo story\nphoto_data, photo_size = media.prepare_image(\n    'pathto/my_photo.jpg', aspect_ratios=MediaRatios.reel)\napi.post_photo_story(photo_data, photo_size)\n\n# post a video story\nvid_data, vid_size, vid_duration, vid_thumbnail = media.prepare_video(\n    'pathto/my_video.mp4', aspect_ratios=MediaRatios.reel)\napi.post_video_story(vid_data, vid_size, vid_duration, vid_thumbnail)\n\n# post a video without reading the whole file into memory\nvid_saved_path, vid_size, vid_duration, vid_thumbnail = media.prepare_video(\n    'pathto/my_video.mp4', aspect_ratios=MediaRatios.standard,\n    save_path='pathto/my_saved_video.mp4', save_only=True)\n# To use save_only, the file must be saved locally\n# by specifying the save_path\nwith open(vid_saved_path, 'rb') as video_fp:\n    api.post_video(video_fp, vid_size, vid_duration, vid_thumbnail)\n```\n\n### [Pagination](instagram_private_api_extensions/pagination.py)\n\n```python\nfrom instagram_private_api_extensions import pagination\n\n# page through a feed\nitems = []\nfor results in pagination.page(api.user_feed, args={'user_id': '123456'}):\n    if results.get('items'):\n        items.extend(results['items'])\nprint(len(items))\n```\n\n### [Live](instagram_private_api_extensions/live.py)\n\n```python\nfrom instagram_private_api_extensions import live\n\nbroadcast = api.broadcast_info('1234567890')\n\ndl = live.Downloader(\n    mpd=broadcast['dash_playback_url'],\n    output_dir='output_{}/'.format(broadcast['id']),\n    user_agent=api.user_agent)\ntry:\n    dl.run()\nexcept KeyboardInterrupt:\n    if not dl.is_aborted:\n        dl.stop()\nfinally:\n    # combine the downloaded files\n    # Requires ffmpeg installed. If you prefer to use avconv\n    # for example, omit this step and do it manually\n    dl.stitch('my_video.mp4')\n```\n\n### [Replay](instagram_private_api_extensions/replay.py)\n\n```python\nfrom instagram_private_api_extensions import replay\n\nuser_story_feed = api.user_story_feed('12345')\n\nbroadcasts = user_story_feed.get('post_live_item', {}).get('broadcasts', [])\nfor broadcast in broadcasts:\n    dl = replay.Downloader(\n        mpd=broadcast['dash_manifest'],\n        output_dir='output_{}/'.format(broadcast['id']),\n        user_agent=api.user_agent)\n    # download and save to file\n    dl.download('output_{}.mp4'.format(broadcast['id']))\n```\n\n## Support\nMake sure to review the [contributing documentation](CONTRIBUTING.md) before submitting an issue report or pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fping%2Finstagram_private_api_extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fping%2Finstagram_private_api_extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fping%2Finstagram_private_api_extensions/lists"}