How can I get an direct Instagram link from a twitter entity?

前端 未结 1 493
北恋
北恋 2021-02-03 11:14

I have a twitter feed and I can find the instagram url in a tweet.

{
    indices: [
        90,
        110
    ],
    url: \"http://t.co/kF9EXifn\",
    expan         


        
相关标签:
1条回答
  • 2021-02-03 11:48

    You can get just the image by appending /media/ to the URL. Using your example: http://instagr.am/p/QC8hWKL_4K/media/.

    You can even specify a size,

    One of t (thumbnail), m (medium), l (large). Defaults to m.

    So for a thumbnail: http://instagr.am/p/QC8hWKL_4K/media/?size=t

    Documentation here.

    0 讨论(0)
提交回复
热议问题