Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
An Apify scraper to scrape amazon reviews. Adapted from Scrapehero
// Link selector: li.a-last a
async function pageFunction(context) {
const { request, log, jQuery } = context;
var $ = context.jQuery;
var result = [];
$("").each( function() {
rating: $(this).find("span.a-icon-alt").text().charAt(0),
title : $(this).find("").text(),
content : $(this).find(" span.a-size-base").text(),
author : $(this).find("span.a-profile-name").text(),
date : $(this).find("span.a-size-base.a-color-secondary").text(),
return result;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment