使用亚马逊链接下载mp3文件

huangapple go评论88阅读模式
英文:

Download mp3 file using amazon link

问题

您从第三方获取了一个Amazon S3的URL链接。每当尝试访问此链接并下载文件时,它会过期。我不知道如何从链接下载此文件。以下是链接:

https://s3.amazonaws.com/telephony-recorder-prod/fe3b51e5-b8c9-4ff4-b7cd-0f86901fe67b/2023-06-09/bbdede88-06e4-11ee-b0e0-02420a0de768-1686329007.mp3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIASDC5E2MJDPKMH7UW%2F20230609%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=202306012T121832Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=1583e6b4ac7d458efa0d7ecf56114542de420dc4b6761d072c5795e0dfceb0ff

我正在尝试以下方式:

<a class="a-orange" target="_blank" title="Download mp3" 
   href="https://s3.amazonaws.com/telephony-recorder-prod/fe3b51e5- 
    b8c9-4ff4-b7cd-0f86901fe67b/2023-06-09/bbdede88-06e4-11ee-b0e0- 
  02420a0de768-1686329007.mp3?X-Amz-Algorithm=AWS4-HMAC- 
   SHA256&amp;amp;X-Amz-Credential=AKIASDC5E2MJDPKMH7UW%2F20230609%2Fus- 
      east-1%2Fs3%2Faws4_request&amp;amp;X-Amz- 
      Date=20230609T164332Z&amp;amp;X-Amz-Expires=600&amp;amp;X-Amz- 
    SignedHeaders=host&amp;amp;X-Amz- Signature=1583e6b4ac7d458efa0d7ecf56114542de420dc4b6761d072c5795e0dfceb0ff">
     <i _ngcontent-svl-c100="" class="fa fa-download mr-2"></i>
</a>

任何形式的帮助都将不胜感激。

英文:

I am getting a s3 amazon url from third party.
Whenever I try to hit this url and download the file from this link it expire.
I am not getting how to download this file from link.
Here is the link.

https://s3.amazonaws.com/telephony-recorder-prod/fe3b51e5-b8c9-4ff4-b7cd-0f86901fe67b/2023-06-09/bbdede88-06e4-11ee-b0e0-02420a0de768-1686329007.mp3?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=AKIASDC5E2MJDPKMH7UW%2F20230609%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=202306012T121832Z&amp;X-Amz-Expires=600&amp;X-Amz-SignedHeaders=host&amp;X-Amz-Signature=1583e6b4ac7d458efa0d7ecf56114542de420dc4b6761d072c5795e0dfceb0ff

I am triyng this way

 &lt;a class=&quot;a-orange&quot; target=&quot;_blank&quot; title=&quot;Download mp3&quot; 
       href=&quot;https://s3.amazonaws.com/telephony-recorder-prod/fe3b51e5- 
        b8c9-4ff4-b7cd-0f86901fe67b/2023-06-09/bbdede88-06e4-11ee-b0e0- 
      02420a0de768-1686329007.mp3?X-Amz-Algorithm=AWS4-HMAC- 
       SHA256&amp;amp;X-Amz-Credential=AKIASDC5E2MJDPKMH7UW%2F20230609%2Fus- 
          east-1%2Fs3%2Faws4_request&amp;amp;X-Amz- 
          Date=20230609T164332Z&amp;amp;X-Amz-Expires=600&amp;amp;X-Amz- 
        SignedHeaders=host&amp;amp;X-Amz- Signature=1583e6b4ac7d458efa0d7ecf56114542de420dc4b6761d072c5795e0dfceb0ff&quot;&gt; 
         &lt;i _ngcontent-svl-c100=&quot;&quot; class=&quot;fa fa-download mr-2&quot;&gt;&lt;/i&gt;&lt;/a&gt;

Any kind of help much appriciated.

答案1

得分: 1

这是一个Amazon S3预签名URL,它提供了对Amazon S3中私有对象的有时限制的访问,直到它过期。

它在他们的网站上工作,因为当您访问该服务时,他们会生成一个新的预签名URL。它将在生成预签名URL后的600秒内过期。

因此,您应该前往您提到的“门户”,通过他们提供的“新鲜”链接下载它。

英文:

It is an Amazon S3 pre-signed URLs, which provides time-limited access to private objects in Amazon S3, which has a limited time until it expires.

It works from their website because they generate a new pre-signed URL when you access the service. It will expire after 600 seconds of the time that they generate the pre-signed URL.

Therefore, you should go to the 'portal' you mention and download it via a 'fresh' link that they provide.

huangapple
  • 本文由 发表于 2023年6月12日 15:01:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/76454258.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定