Skip to content

Instantly share code, notes, and snippets.

@DanNYSPD
Created March 9, 2021 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanNYSPD/b05d50d2f2ceebacb82ce191f584948e to your computer and use it in GitHub Desktop.
Save DanNYSPD/b05d50d2f2ceebacb82ce191f584948e to your computer and use it in GitHub Desktop.
Gets hrefs and download via wget
//download pages that are referenced by a "a element", usefull for pages with links to documentations
Array.from(document.querySelectorAll('body > p > a')).map(x=>"wget "+x.href).join(" & ");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment