【问题标题】:Instagram API - How can I get the bios of people I am following on my account?Instagram API - 如何获取我在我的帐户上关注的人的简历?
【发布时间】:2021-01-24 23:48:46
【问题描述】:

首先,我认为 API 不允许我访问我的关注者/关注者列表。我试图找到方法来做到这一点,但它们都已经过时了。 我可以获取特定用户的简历,但我需要为以下列表中的所有用户执行此操作。

import requests


user = "xxxxx"

headers = {
    'User-Agent': ''
}


r = requests.get(f"https://www.instagram.com/{user}/?__a=1", headers=headers)
userinfo = r.json()["graphql"]

bio = userinfo["user"]["biography"]


print(bio)

【问题讨论】:

    标签: python api instagram


    【解决方案1】:

    Instagram 没有公共 API。有像Instaloader 这样的工具可以通过抓取来提取给定配置文件的followersfollowees,但我建议不要这样做,因为抓取违背了Instagram 的Terms of Use

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多