gisdev-km / pynstagram

Python library that allows you to upload photos to instagram

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status PyPi

Pynstagram

Pynstagram is small python module and CLI tool that allows you to upload photo to Instagram.

CLI tool

pynstagram -u username -f ~/kittens/31415.jpg -t '#meow'

Module

import pynstagram

with pynstagram.client('username', 'password') as client:
	client.upload('~/kittens/31415.jpg', '#meow')

Installation

pip install pynstagram

Usage tips

To use a line break in caption text you need to properly escape \n symbol. There are few options:

  • Use $' . . . ' escaping.
pynstagram -u username -f ~/kittens/31415.jpg -t $'line\nbreak'
  • Use multiline argument.
pynstagram -u username -f ~/kittens/31415.jpg -t "line
> break"

Disclaimer: Pynstagram uses private API of Instagram, there is no guaranty that this library will work in the future. Instagram may not like that you use private API.

Many kudos to Lance G. Newman for his article.

About

Python library that allows you to upload photos to instagram

License:MIT License


Languages

Language:Python 100.0%