【问题标题】:How can I check how many followers someone has on Instagram with Python?如何使用 Python 检查某人在 Instagram 上有多少关注者?
【发布时间】:2019-09-16 21:35:29
【问题描述】:

所以我希望能够在我的 Python 程序中输入用户名,然后它会检查该帐户有多少关注者(如果它不是私人的)并显示该数字。我确定这与 API 有关。

【问题讨论】:

标签: python api instagram


【解决方案1】:

您可以使用此 API 端点:

https://instagram.com/{username}/?__a=1

它返回帐户信息的 JSON 表示形式。

示例:https://instagram.com/instagram/?__a=1

【讨论】:

    【解决方案2】:

    我想到的第一个想法是用beautifulsoup刮一下。

    【讨论】:

    • 谢谢,我去查一下。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-05-25
    • 1970-01-01
    • 1970-01-01
    • 2019-07-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多