【问题标题】:How to scrape similar/related accounts from instagram in python?如何在 python 中从 instagram 中抓取类似/相关的帐户?
【发布时间】:2021-11-27 19:57:22
【问题描述】:

我正在尝试抓取与 instagram 中给定帐户相似/相关的帐户。查询 URL:https://www.instagram.com/{username}/?_a=1 不提供此信息。

感谢任何帮助。

【问题讨论】:

    标签: python web-scraping instagram


    【解决方案1】:

    如果您想列出用户的所有关注者和关注者,我根据您的问题猜测。 aandergr made answered that in this question. 如果不告诉我你如何定义“相似”

    【讨论】:

    • 感谢您的回复。但我正在寻找建议的帐户。例如 - 如果我关注 maccosmetics,那么其他美容品牌将是类似/建议关注的帐户。
    • 啊,好吧,似乎找不到合适的东西。祝你好运
    【解决方案2】:

    获取此信息的方法是从链接:https://www.instagram.com/{username} 和信息来自 "edge_related_profiles":{"edges":[{"node":{".....}}]}

    为了得到这个,我们需要以访客身份在网站上进行身份验证,并且不应该登录。我仍在调查其原因,但可以解决问题。

    【讨论】:

    • 对此有任何更新吗?未登录时似乎可以正常工作,但这会导致 Instagram 重定向到登录页面。
    猜你喜欢
    • 2023-02-09
    • 1970-01-01
    • 2021-01-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多