Answers for "get all the links from a website"

1

Find all links / pages on a website

urls = document.querySelectorAll('a'); for (url in urls) console.log(urls[url].href);
Posted by: Guest on March-18-2022
0

How to find all links in the page

All the link TagName should be "a". 
I locate the webelements starts with tagname "a". 
I also use driver.findElements instead of driver.findElement since the 
list of webelements will return.
List list = driver.findElements(By.tagName(“a”));
Posted by: Guest on May-29-2021
0

How to check all links of a website?

linkchecker http://www.example.com/
Posted by: Guest on October-21-2021

Code answers related to "get all the links from a website"

Browse Popular Code Answers by Language