【问题标题】:Download an instagram image in android在 Android 中下载 Instagram 图像
【发布时间】:2016-01-05 14:28:43
【问题描述】:

我想通过知道它的 url 来下载 intagram 的图像,例如:https://www.instagram.com/p/BAKQchetc 但是当我使用 tihs URL 时,它会将我带到 instagram 页面,我只想看到图像,我能做什么?

(我使用FileAsyncHttpResponseHandler下载图片)

【问题讨论】:

  • 您需要使用instagram api。这是文档页面instagram.com/developer
  • 是的,但我正在阅读并且知道如何制作它.... T.T

标签: android android-studio instagram downloadfileasync


【解决方案1】:

第 1 步:复制 URL,它必须是这样的:https://www.instagram.com/p/CRIpFwTLJvW/?utm_medium=copy_link

第 2 步:现在从 URL 中删除“utm_medium=copy_link”部分并替换为“__a=1”

第 3 步:在 postman 中运行此 URL,您将得到响应

第 4 步:搜索 og:image 作为响应,您会发现

注意:您可以使用 JSON 格式化程序来格式化 Jason 响应并在 json fromate 中轻松找到显示 url

【讨论】:

    【解决方案2】:

    将 /media/?size=l 附加到 https://www.instagram.com/p/BAKQchetc,您将只收到图像数据。

    【讨论】:

    • 网址已损坏
    猜你喜欢
    • 2021-06-12
    • 2017-06-05
    • 2012-10-27
    • 2018-11-17
    • 1970-01-01
    • 1970-01-01
    • 2022-12-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多