简体   繁体   中英

How to download an MP3 file from a website that prevents direct download link?

How do you download the MP3 file from this website?

https://www.audiobookcup.com/race-the-sands-a-novel-audiobook/

I've tried inspect element and found the.mp3 file https://videos3.audiobookx.com/1421-MP3/BK_HARP_010531.mp3

However, when I try directly downloading it, I get an unauthorized message

Would really appreciate the help, For some reason, the audiobookcup site refreshes every 10 minutes while I'm listening. which makes it really hard to find my place again. Having a way to download the file would mean a lot!

When you're on the web page, open the DevTools with F12 then copy/paste this code in the console:

const link = document.createElement('a');
link.href = "https://videos3.audiobookx.com/1421-MP3/BK_HARP_010531.mp3";
link.download = 'some-file-name.mp3';
document.body.appendChild(link);
link.click();

You can replace 'some-file-name.mp3' with the name you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM