PDA

View Full Version : URL extractor - Extract links from Google SERP or any webpage at all



Fli
01-18-2015, 03:24 PM
Just curious if You know any good free URL extractors. I mean online tool that show all links that go from some webpage.

So far i found this way (works in Google Chrome):
Create new bookmark and then as an URL paste this code:

javascript:(function(){output="<html><head><title>High Position SERP Link Generator</title><style type=\"text/css\">body,table{font-family:Tahoma,Verdana,Segoe,sans-serif;font-size:11px;color:#000}h1,h2,th{color:#405850}th{tex t-align:left}h2{font-size:11px;margin-bottom:3px}</style></head><body>";output+="<table><tbody><tr><td><a href=\"http://www.internetlifeforum.com\"><img src=\"http://www.highposition.com/images/hp-group.png\"></a></td><td><h1>SERP Link Generator</h1></td></tr></tbody></table>";pageAnchors=document.getElementsByTagName("a");var linkcount=0;var linkLocation="";var linkAnchorText="";output+="<table><th>ID</th><th>Link</th><th>Anchor</th>";for(i=0;i<pageAnchors.length;i++){var anchorText = pageAnchors[i].textContent;var anchorLink = pageAnchors[i].href;var linkAnchor = anchorLink + "\t"+anchorText;var anchorID = pageAnchors[i].id;if(anchorLink!=""){if(anchorLink.match(/^((?!google\.|cache|blogger.com|\.yahoo\.|youtube\ .com\/\?gl=|youtube\.com\/results|javascript:|api\.technorati\.com|botw\.org \/search|del\.icio\.us\/url\/check|digg\.com\/search|search\.twitter\.com\/search|search\.yahoo\.com\/search|siteanalytics\.compete\.com|tools\.seobook\ .com\/general\/keyword\/suggestions|web\.archive\.org\/web\/|whois\.domaintools\.com|www\.alexa\.com\/data\/details\/main|www\.bloglines\.com\/search|www\.majesticseo\.com\/search\.php|www\.semrush\.com\/info\/|www\.semrush\.com\/search\.php|www\.stumbleupon\.com\/url|wikipedia.org\/wiki\/Special:Search).)*$/i)){if(anchorID.match(/^((?!hdtb_more|hdtb_tls|uh_hl|gb36).)*$/i)){linkLocation+=anchorLink+"<br />";linkAnchorText+=anchorText+"<br />";linkcount++;if (anchorText === undefined) anchorText = pageAnchors[i].innerText;output+="<tr>";output+="<td>"+linkcount+"</td>";output+="<td>"+pageAnchors[i].href+"</a></td>";output+="<td>"+anchorText+"</td>";output+="</tr>\n";}}}}output+="</table><br/><h2>URL List</h2><div>";output+=linkLocation;output+="</div><br/><h2>Anchor Text List</h2><div>";output+=linkAnchorText;output+="<br/>%C2%A0<br/><p align=center><a href=\"http://www.internetlifeforum.com\">www.internetlifeforum.com</a></p>";with(window.open()){document.write(output);docume nt.close();}})();