2 ms·
does anyone know the fastest way to rip a sound file from this flash player for private use?
by rd108 14y ago
does anyone know the fastest way to rip a sound file from this flash player for private use?
- w-ll 14y agoChrome Dev Tools -> Network (or Firebug if you're into that :)
- rd108 14y agoYup. found the file I wanted by looking through the source for *.mp3 and finding the static file asset.
- freescience 14y agoThis bookmarklet will add download links. Copy and paste into a bookmark, click it when you're on an ML search/download page: javascript:{ try{ titletext=document.getElementById("jqmTitleText"); pat=/([^0-9]+)([0-9]+)/gi; id=pat.exec(titletext.innerHTML)[2]; th=id.substr(0,id.length-4); url="http://audio.macaulaylibrary.org/+th+/+id+.mp3 http://audio.macaulaylibrary.org/+th+/+id+.mp3; titletext.innerHTML = titletext.innerHTML + " <a href=\""+url+"\" target=\"_blank\" style=\"background-color:#990000;color:white;padding:2px;text-decoration:none\">download</a>"; }catch(err){} try{ content=document.getElementById("content"); title=content.children[0]; if(title&&!title.children[0]){ pat=/([^0-9]+)([0-9]+)/gi; id=pat.exec(title.innerHTML)[2]; th=id.substr(0,id.length-4); url="http://audio.macaulaylibrary.org/+th+/+id+.mp3 http://audio.macaulaylibrary.org/+th+/+id+.mp3; title.innerHTML = title.innerHTML + " <a href=\""+url+"\" target=\"_blank\" style=\"background-color:#990000;color:white;padding:2px;text-decoration:none\">download</a>"; } }catch(err){} try{ content=document.getElementsByClassName("catalog"); for(c=0;c<content.length;c++){ if(content[c].children[2].classList.contains("play")){ id=content[c].children[0].innerHTML; th=id.substr(0,id.length-4); url="http://audio.macaulaylibrary.org/+th+/+id+.mp3 http://audio.macaulaylibrary.org/+th+/+id+.mp3; content[c].innerHTML = content[c].innerHTML + " <a href=\""+url+"\" target=\"_blank\" style=\"background-color:#990000;color:white;padding:2px;text-decoration:none\">download</a>"; } } }catch(err){} }; void(0);
- freerscience 14y agoThat bookmarklet is wrong. I think hackernews filters out the "s in those links. Here: javascript:{ try{ titletext=document.getElementById("jqmTitleText"); pat=/([^0-9]+)([0-9]+)/gi; id=pat.exec(titletext.innerHTML)[2]; th=id.substr(0,id.length-4); url="htt"+"p:/"+"/audio.macaulaylibrary."+"org/"+th+"/"+id+".mp3"; titletext.innerHTML = titletext.innerHTML + " <a href=\""+url+"\" target=\"_blank\" style=\"background-color:#990000;color:white;padding:2px;text-decoration:none\">download</a>"; }catch(err){} try{ content=document.getElementById("content"); title=content.children[0]; if(title&&!title.children[0]){ pat=/([^0-9]+)([0-9]+)/gi; id=pat.exec(title.innerHTML)[2]; th=id.substr(0,id.length-4); url="ht"+"tp:/"+"/audio.macaulaylibrary."+"org/"+th+"/"+id+".mp3"; title.innerHTML = title.innerHTML + " <a href=\""+url+"\" target=\"_blank\" style=\"background-color:#990000;color:white;padding:2px;text-decoration:none\">download</a>"; } }catch(err){} try{ content=document.getElementsByClassName("catalog"); for(c=0;c<content.length;c++){ if(content[c].children[2].classList.contains("play")){ id=content[c].children[0].innerHTML; th=id.substr(0,id.length-4); url="ht"+"tp:/"+"/audio.macaulaylibrary."+"org/"+th+"/"+id+".mp3"; content[c].innerHTML = content[c].innerHTML + " <a href=\""+url+"\" target=\"_blank\" style=\"background-color:#990000;color:white;padding:2px;text-decoration:none\">download</a>"; } } }catch(err){} }; void(0);
- personalcompute 14y agohttp://audio.macaulaylibrary.org/<hundred http://audio.macaulaylibrary.org/<hundred thousands digit of ID><ten thousands digit of ID>/<recording unique ID>.mp3 Examples: http://macaulaylibrary.org/audio/163685 http://macaulaylibrary.org/audio/163685 Here the ID is '163685'. Raw file is: http://audio.macaulaylibrary.org/16/163685.mp3 http://audio.macaulaylibrary.org/16/163685.mp3 http://macaulaylibrary.org/audio/53276 http://macaulaylibrary.org/audio/53276 Here the ID is '53276'. Raw file is http://audio.macaulaylibrary.org/5/53276.mp3 http://audio.macaulaylibrary.org/5/53276.mp3