Get the all URL link in a website use Java scip

Written on 26 July 2016

Get all a href link in website in javascript
1. Open console
- Open Javascript console
2. Use code bellow to get the full URI from the href property of a link.

var links = document.links;  
for (var i = 0, linksLength = links.length; i < linksLength; i++){  
console.log(links[i].hostname+links[i].pathname)  
 }
  1. Save console log and get the link you want.