Home
Get URLs from All Sitemaps
List URLs from Sitemap
Get urls from SERPs
Keyword Research
Tech Sitemap Generator
Grab URLs from Google SERPs
Copy the code snippet below which extracts URLs from Google search results:
// Grab all the URLs from blue titles const urls = Array.from(document.querySelectorAll('h3')).map(h3 => { const anchor = h3.closest('a'); return anchor ? anchor.href : null; }).filter(Boolean); const formattedList = urls.join('\n'); // Create a copy button const copyBtn = document.createElement('button'); copyBtn.textContent = 'Copy URLs to Clipboard'; copyBtn.style.position = 'fixed'; copyBtn.style.top = '20px'; copyBtn.style.right = '20px'; copyBtn.style.padding = '10px'; copyBtn.style.zIndex = 9999; copyBtn.style.background = '#4285f4'; copyBtn.style.color = '#fff'; copyBtn.style.border = 'none'; copyBtn.style.borderRadius = '4px'; copyBtn.style.cursor = 'pointer'; copyBtn.onclick = () => { navigator.clipboard.writeText(formattedList) .then(() => { copyBtn.textContent = 'Copied!'; }) .catch(err => { copyBtn.textContent = 'Copy failed'; console.error(err); }); }; document.body.appendChild(copyBtn);
Copy Code to Clipboard