javascript:(function(){var
t=document.title,l=parseInt(prompt("How many
pages to load before download? (default
20)","20"))||20,c=1,b=document.querySelector('.btn-primary[href="#"]'),lastCount=0,stuck=0;document.title="%F0%9F%94%84%20Starting%20auction%20data%20extraction...";console.log("Starting%20auction%20data%20extraction...");var%20d=function(){var%20a=b.getAttribute("data-next-page"),currCount=document.querySelectorAll(".item-horizontal").length;if(currCount===lastCount){stuck++;}else{stuck=0;}lastCount=currCount;if(stuck>=2||!a){document.title="%E2%9C%85%20All%20items%20loaded!%20Preparing%20download...";console.log("All%20items%20have%20been%20loaded!");setTimeout(e,500);return;}if(c>l){document.title="%E2%9C%85%20Loading%20complete!%20Preparing%20download...";setTimeout(e,500);return;}b.click();var%20p=Math.round(c/l*100);document.title=`%F0%9F%94%84%20Loading%20data...%20${c}/${l}%20(${p}%)`;console.log("Clicked%20"+c+"%20times%20("+p+"%%20complete)");c++;setTimeout(d,1e3);},e=function(){document.title="%F0%9F%93%8A%20Processing%20auction%20data...";console.log("Processing%20auction%20data...");var%20a=[],vinSet=new%20Set(),f=document.querySelectorAll(".item-horizontal");f.forEach(function(g,i){var%20h=g.querySelector(".name%20a"),j=h.textContent.split("%20"),k=j[0],m=j.slice(1).join("%20"),n=g.querySelector(".odo_desc").textContent.match(/(\d+)k%20miles%20\((\d+)k%20km\)/),o=n?parseInt(n[1])*1e3:null,p=n?parseInt(n[2])*1e3:null,q=g.querySelector(".loc_desc").textContent.replace("Location:","").trim(),r=g.querySelector("li.damage-info:not(.doc_desc)").textContent.trim().replace("Damage:","").trim(),s=g.querySelector(".status_item%20strong").textContent.trim(),u=g.querySelector(".vin_title").textContent.trim();if(vinSet.has(u))return;vinSet.add(u);var%20v=g.querySelector(".price-box").textContent.match(/\$([0-9,]+)/),w=v?parseInt(v[1].replace(/,/g,"")):null,x=h.href,y=g.querySelector(".date").textContent.trim().match(/(Mon|Tue|Wed|Thu|Fri|Sat|Sun)\s+(\d+)\s+(January|February|March|April|May|June|July|August|September|October|November|December),\s+(\d{4})/),z=y?y[2]+"%20"+y[3]+"%20"+y[4]:null,A=g.querySelector(".carousel-item.active"),B=null;if(A){var%20bg=A.style.backgroundImage||"";var%20murl=bg.match(/url\(["']?(https:\/\/mercury\.bid\.cars\/[^"')]+)["']?\)/i);if(murl)B=murl[1];}var%20E=null;var%20S=g.querySelectorAll(".specs%20span");S.forEach(function(sp){if(E===null){var%20m=sp.textContent.trim().match(/^(\d+(?:\.\d+)?)L$/i);if(m)E=parseFloat(m[1]);}});var%20auction=null;var%20ia=g.querySelector(".item-seller%20.iaai"),cp=g.querySelector(".item-seller%20.copart");if(ia)auction="IAAI";else%20if(cp)auction="Copart";a.push({year:parseInt(k),model:m,miles:o,kilometers:p,location:q,damage:r,status:s,vin:u,price:w,url:x,auctionDate:z,imageUrl:B,engine_size:E,auction:auction});});document.title="%F0%9F%92%BE%20Generating%20download%20file...";console.log("Generating%20download%20file...");var%20H=JSON.stringify(a,null,2),I=new%20Blob([H],{type:"application/json"}),J=window.URL.createObjectURL(I),K=(new%20Date).toISOString().split("T")[0],L=document.createElement("a");L.href=J;L.download="car_auction_data_"+K+".json";document.body.appendChild(L);L.click();window.URL.revokeObjectURL(J);document.body.removeChild(L);document.title="%E2%9C%85%20Download%20complete!%20You%20may%20now%20close%20this%20tab.";console.log("JSON%20file%20has%20been%20downloaded!%20Found%20"+a.length+"%20unique%20items.");return%20a;};d();})();
2. Log in to
bid.cars
and open the archived auctions for the model you want.
Create an account if you dont have one.
3. With the car list open, click on
this new bookmark and keep the tab open. The tab title
will show the scraping progress.
4. Download the .json file and upload
it to this site!