Last active
November 14, 2016 10:09
-
-
Save mki/128ed0e057a02700519bb07af8a88d1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
r = requests.get('https://api.instagram.com/v1/users/search?q=mkispb&count=1&access_token=...') | |
user_id = None | |
for user in r.json()['data']: | |
if user['username'] == 'mkispb': | |
user_id = user['id'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment