0

I use the below script all the time and it works great for the follower and followee lists. How can I also scrape the full name of the user if it is provided? I'm aware of '''property full_name''' but not sure how to use it in this context or if that would even work. I'm very new to coding and definitely not a developer. Any help is much appreciated.

import instaloader

loader = instaloader.Instaloader()

loader.login('myusername', 'mypassword')

profile = instaloader.Profile.from_username(loader.context,'targetprofile')

profile = instaloader.Profile.from_username(loader.context,'targetprofile')

followers = profile.get_followers()

for follower in followers: print(follower, full_name)
Phelan
  • 1
  • 2

1 Answers1

1

Do this instead:

print(follower.username)
Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77
Wesleyongs
  • 11
  • 1