Paste your Yelp collection URLs. We'll diff against what you already have, then let you import only the new ones. Yelp API used only during import (500 calls/day free).
Step 1 — Auto-scroll the Yelp page:
(async () => {
let prev = 0, unchanged = 0;
while (unchanged < 3) {
window.scrollTo(0, 9999999);
document.documentElement.scrollTop = 9999999;
document.body.scrollTop = 9999999;
await new Promise(r => setTimeout(r, 3000));
const curr = [...document.querySelectorAll('a[href*="/biz/"]')]
.map(a => a.href.split('?')[0])
.filter((v,i,a) => a.indexOf(v) === i).length;
if (curr === prev) unchanged++;
else { unchanged = 0; prev = curr; }
console.log('Loaded ' + curr + ' so far…');
}
alert('Done! ' + prev + ' found. Now run Step 2.');
})();Step 2 — Copy all URLs:
const links = [...document.querySelectorAll('a[href*="/biz/"]')]
.map(a => { try { return decodeURIComponent(a.href.split('?')[0]) } catch { return a.href.split('?')[0] } })
.filter((v,i,a) => a.indexOf(v)===i)
.filter(u => /yelp\.com\/biz\/[^/?#\s]+/.test(u));
copy(links.join('\n'));
alert(links.length + ' URLs copied!');