get-links-cli

get links via dom selector (cli version)

Usage no npm install needed!

<script type="module">
  import getLinksCli from 'https://cdn.skypack.dev/get-links-cli';
</script>

README

get-links-cli

Javascript JavaScript Style Guide Open Source Love Gitter Chat

get links via dom selector (cli version)

Info: You can find the non-CLI Version here

Installation

npm install -g get-links-cli

or

yarn global add get-links-cli

Example

get all links from site:

get-links -u https://domain.tld -c a

get all links with css class ".video":

get-links -u https://domain.tld -c "a .video"

save links to file:

get-links -u https://domain.tld -c "a .video" -o links.txt

Parameter

  • -u [--url] : URL (required)
  • -c [--css] : DOM/CSS Selector (required)
  • -o [--out] : Output to file (optional)

Contact / Social Media

Get the latest News about Web Development, Open Source, Tooling, Server & Security

GithubDockernpmTwitterFacebookGoogle+Gitter

License

Copyright (c) 2016 Maik Ellerbrock

MIT Licence