#get media from location medias = instagram.get_medias_by_location_id('788945024', 10) media = medias[0] #same issues with grabbing data from search as feed example #fix do a direct search with id from specific picture in feed media= instagram.get_media_by_id(media.identifier) account=media.owner print('Id', account.identifier) print('Username', account.username) print('Full Name', account.full_name) #get media from feed feed = instagram.get_medias_from_feed('anwar') picture = feed[7] print(picture) print('Account info:') #account object from media doesn't not have desired info # account = media.owner # print('Id', account.identifier) # print('Username', account.username) # print('Full Name', account.full_name) # # print('Profile Pic Url', account.get_profile_picture_url_hd()) #fix do a direct search with id from specific picture in feed media= instagram.get_media_by_id(picture.identifier) account=media.owner print('Id', account.identifier)
from context import Instagram # pylint: disable=no-name-in-module instagram = Instagram() instagram.with_credentials('username', 'password', 'path/to/cache/folder') instagram.login() medias = instagram.get_medias_from_feed('kevin') media = medias[0] print(media) print('Account info:') account = media.owner print('Id', account.identifier) # print('Username', account.username) # print('Full Name', account.full_name) # print('Profile Pic Url', account.get_profile_picture_url_hd())