Javi

Descargar podcasts de ivoox

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