Menu
I’m trying to extract links for a web crawler for a search engine. The browser automatically makes relative links absolute, and I can use this capability with document.anchors to get an array of links. So how can I replace “document” with the url of a web page I’m not on?
If I can’t, should I make an iframe that goes to the location and returns document.anchors? The code that asks for the links only runs when someone clicks on a link to a search result, but visiting maybe a hundred locations in the iframe could make the page redirect before the code finishes running.
What should I do?