Python library and cli used to upload photo on Instagram. W/o a phone!
Project description
instapy-cli :zap:
Repo Infos
Python library and cli used to post photos and videos (NEW!) on Instagram, without a phone! You can upload a local file or use a link, it does everything automagically.
Introduction
There are plenty of libraries written in Python specialized on working on Instagram APIs (either public or private), but most of them have unsolved issues and PRs not maintained for a time as long as 5-6 months.
At the same time, lots of developers want a simple and effective way to post photos or videos (NEW!) programmatically.
So I dedided to start this repo and open-source it with :heart:
Install
Install
pip install instapy-cli
Use as Library
You can check the folder examples
to see working codes to use instapy-cli programmatically.
If you want to use instapy-cli via shell continue reading.
Use as CLI
Use
instapy -u USR -p PSW -f FILE/LINK -t 'TEXT CAPTION'
Help
instapy --help
Hint
Image Format Instapy-cli support images in the format of JPG/JPEG/PNG.
Aspect Ratio The images need to have an aspect ratio of 1:1, that is squared size. You can use other aspect-ratio other than 1:1, but be carefull to stay inside this limits:
- MIN_ASPECT_RATIO = 0.80
- MAX_ASPECT_RATIO = 1.91 Otherwise, if you don't respect the aspect ratio, the media will be posted but stretched or cropped.
Why instapy-cli?
First, long story short: instapy-cli is a fork of pynstagram, with the aim of extending its functionality and fixing all unresolved bugs.
Move this project to a better place :arrow_right_hook:
Anyone that wants to collaborate, I promise to be a good repo manager and merge all your pull requests as soon as possible. I have some ideas to improve this but I need collaboration. Join and support! :bulb:
But, wait! Instagram doesn't allow uploading content except from the app (of course :trollface:)
Short answer:
Yes, you are right.
Long answer:
Every connection from a mobile phone could be intercepted. Someone has done the hard work to sniff the packets sent from the phone to Instagram and "spread the news". You can do a quick research.
Code Requirements
This packages will be installed automatically with instapy-cli
package | Source Link |
---|---|
requests | https://github.com/requests/requests |
instagram-private-api | https://github.com/ping/instagram_private_api |
instagram-private-api-extensions | https://github.com/ping/instagram_private_api_extensions |
License
MIT
Contribute
To help instapy-cli
developers to build and maintain this project, go to docs/CONTRIBUTING.md
instructions soon
(Write it and collaborate! :wink:)
Support the project and the author
Offer me a coffe or a beer and support instapy-cli. :tada:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for instapy_cli-0.0.8.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42d230c07eab3fdab96a7d3b15da3d61c99892c148911403b4484cdb3277e0b8 |
|
MD5 | e097ab44cfee71c93e63ec08dc8c2853 |
|
BLAKE2b-256 | 0cccda1a0dec2cccb19cfe0e3405e8952edf25dccfb7e252c12c35ef7ab84205 |