Skip to content

beeramtheman/pynstagram

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%