我想从 Instagram 不同的公共和私人帐户中抓取数据。但是当我运行以下代码时。
from instagramy import Instagram
# Connecting the profile
user = Instagram("ihtishamKhattak")
# printing the basic details like
# followers, following, bio
print(user.is_verified())
print(user.popularity())
print(user.get_biography())
# return list of dicts
posts = user.get_posts_details()
print('\n\nLikes', 'Comments')
for post in posts:
likes = post["likes"]
comments = post["comment"]
print(likes,comments)