https://github.com/Instagram/python-instagram
python 활용 instragram api 예제 코드
사전에 curl로 access_token 으로 인증 받아야 함
#!/usr/bin/python
# -*- coding: cp949 -*-
from instagram.client import InstagramAPI
client_id = '############'
client_secret = '##################'
access_token = '#############'
client_ip = '#############'
api = InstagramAPI(access_token=access_token, client_secret=client_secret)
recent_media, next_ = api.user_recent_media(user_id="########", count=10)
for media in recent_media:
print media.images['standard_resolution'].url
~
~
~
'Python' 카테고리의 다른 글
python 에서 pushover 메시지 어플 사용하기 (0) | 2016.12.06 |
---|---|
Flask에서 mysql 쿼리 후 json 으로 결과 값 보내기 (0) | 2016.11.25 |
python과 mysql 또는 maraidb 연동 시 설치 방법 (0) | 2015.10.11 |
python과 트위터 연동 시 설치 모듈 (0) | 2015.10.11 |
아마존 EC2 서버 Pyhton 2.7로 업그레이드 (0) | 2015.05.03 |