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

282
Views
jQuery: Uncaught TypeError: .find is not a function

I'm trying to scrape prices of amazon search results using jQuery, but I keep getting this error "Uncaught TypeError: results[i].find is not a function".

scrape.js


/// example: user searched 'keyboards' on amazon

//grab search result rows from amazon search result page
var results = $('.s-main-slot.s-result-list.s-search-results.sg-row').children;

console.log(results) //htmlCollection(30)[divRow1, divRow2,...,divRow30]

//loop through table results and find child element for price
for (var i=0; i<results.length; i++){
    let r = results[i].find('a-price'); //<--- error
    console.log(r);
};

I've also tried:


//grab search result rows from amazon search result page
var results = $('.s-main-slot.s-result-list.s-search-results.sg-row').children; 

console.log(results) //htmlCollection(30)[divRow1, divRow2,...,divRow30]

//loop through table results and find child element for price
for (var i=0; i<results.length; i++){
    let r = $(results[i]).find('a-price'); //<--- error
    console.log(r);
};

and this.


//grab search result rows from amazon search result page
var results = $('.s-main-slot.s-result-list.s-search-results.sg-row').children;

console.log(results) //htmlCollection(30)[divRow1, divRow2,...,divRow30]

//loop through table results and find child element for price
for (var i=0; i<results.length; i++){
    let r = $(this).find('a-price'); //<--- error
    console.log(r);
};

Same error: .find is not a function. I think the bug is that i'm referencing a DOM object and not a jQuery object, but I can't seem to figure out how to fix that.

about 4 years ago · Juan Pablo Isaza
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!