Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

150
Views
Scraping images from Amazon with javascript -- code no longer works

I worked with a developer to make a very very simple chrome extension for some ecommerce stuff I do and this just helped me automate some things. There was one part that scraped all the images from an Amazon listing and it does not work anymore. I have to assume Amazon changed something with their dom that broke this, but I am not able to fix it. I thought I could but something just isn't working, so I could use some help.

Here is the existing code that worked up until recently. If anyone can spot the issue I would be very grateful.

Sample Amazon item: https://www.amazon.com/Charger-Protector-Extender-Charging-3-Sided/dp/B087RKKXM5?ref_=Oct_DLandingS_D_2bc0bb8e_62&smid=A1BGDLOO430MHB

const scrapeAmazon=()=>{
    let title=$("#productTitle").text(),
        pdescription="",
        url=window.location.href,
        bdescription="";
    if(title) title=title.trim();
    let images=[];
    $("#altImages").find("li").each(function(){
        let imgSrc=$(this).find("img").attr("src");
        if(imgSrc){
            if(imgSrc.split("._SS")[0] && imgSrc.indexOf("._SS")!=-1) images.push(imgSrc.split("._SS")[0]+"._SX1000_.jpg")
        }
    })
about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!