Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Descargar podcasts de ivoox
- t = "https://www.ivoox.com/listenembeded_mn_12345678_1.mp3?source=EMBEDEDHTML5";
- [...document.querySelectorAll('.title-wrapper a')]
- .map(a => ({title : a.innerText, id : a.href.match(/\d{4,8}/g)[0]}))
- .map(d => ({...d, href : t.replace('12345678', d.id)}))
- .map(d => `curl -L "${d.href}" --output "${d.title.toLowerCase().replace(/ /g, '_')}.m4a"`)
- .forEach(c => console.log(c))
Add Comment
Please, Sign In to add comment