Created
March 9, 2021 20:56
-
-
Save DanNYSPD/b05d50d2f2ceebacb82ce191f584948e to your computer and use it in GitHub Desktop.
Gets hrefs and download via wget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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