b3nab/instapy-cli ↗
Created Apr 27, 2022 · View the b3nab/instapy-cli repository page
:sparkles: Python library and CLI to upload photo and video on Instagram. W/o a phone!
Want this for your repo?
Render a free sample of any GitHub repo in seconds.
Contributors
8
Lines of Code
162
From
Oct 4, 2017
To
May 15, 2019
About b3nab/instapy-cli
instapy-cli is a Python library and command-line tool that enables users to upload photos and videos directly to Instagram without using a mobile phone. The project wraps Instagram's private API, allowing developers to programmatically publish regular posts and stories, either from local files or URLs. It automatically handles the technical details of the upload process, abstracting away the complexity of interacting with Instagram's backend.
The tool can be used in two ways: as a Python library for integration into larger applications, or as a standalone CLI tool that accepts a username, password, media file, and optional caption or story flag. Users can optionally store authentication cookies to avoid re-logging in on subsequent uploads. The project supports common image formats including JPG, JPEG, and PNG, with a preference for square 1:1 aspect ratios, though other ratios within Instagram's limits are possible.
The project was created as a maintained fork of an older library called pynstagram, with the goal of fixing unresolved bugs and extending functionality. It depends on several packages including the requests library, filetype detection, and Instagram private API libraries. The author emphasizes the project's collaborative nature and actively encourages community contributions to improve and maintain the codebase.
