• The 8232 Project@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    21 days ago

    For this website, it seems the only way is by fetching the MP3 URL from the network tab (or a random JavaScript file) and passing it into yt-dlp like so:

    yt-dlp "https://audio.usborne.com/audio/Book Readings/Phonics Readers/9781801319591_pho_cockatoos-on-cruise_am-eng_br-pt.mp3"

    This will correctly download it.

    • TauZero@mander.xyz
      link
      fedilink
      English
      arrow-up
      1
      ·
      21 days ago

      As the other comment said, if you inspect page html source (ctrl-U) and ctrl-F search for “mp3”, the URL of the embedded audio file is also right there in plaintext in the middle of javascript code, but it’s merely good fortune that the developer left it easily visible and not renamed or obfuscated in some way. Saving from the network tab works in more cases in general.

      You don’t need to use yt-dlp to fetch files :D. It will let itself be used as wget, sure, but the browser is already capable of saving files - that’s it’s job! Paste the link into the address bar.