Please note that Instagram strongly advices people not to use this API endpoint for building 3rd party applications. Thusly this library won't be well maintained so use it at your own discretion.
Implemented with help from mislav's wiki notes.
Depends on restclient
from pInstagram import Instagram
inst = Instagram()
success, content = inst.login('username', 'password')
if success:
mycookie = inst.cookie #store down cookie string
print inst.feed_timeline()
from pInstagram import Instagram
inst = Instagram(mycookie)
if not inst.is_cookie_expired():
print inst.feed_timeline()