How to get Detail Page Records , i donot know what i am doing wrong

#1

Start Url : https://www.contactcanada.com/database/companies.php?portal=10&s=0&l=90

Psedo Url
Page : https://www.contactcanada.com/database/companies.php?portal=10&s=[\d+]&l=90
details : https://www.contactcanada.com/database/freesearch.php?portal=0a10&action=view_profile&id=[\d+]

clickable elements : a:not([rel=nofollow])

Page Function
function pageFunction(context) {
// called on every page the crawler visits, use it to extract data from it
var = context.jQuery; if (context.request.label === "details") { var business = { name : (’.headingCompany’).text(),
}

    return business;
}else{
    context.skipOutput();
}

}

#2

I’m not sure about clickable elemnts but pageFunction should work.
I will just reformat it.

function pageFunction(context) {
    // called on every page the crawler visits, use it to extract data from it
   var $ = context.jQuery;
   if (context.request.label === "details") {    

        var result = {
            name: $('.headingCompany').text(),
        }

        return result;
    }else{
        context.skipOutput();
    }
}

#3

Perhaps post your log from a run so we can see what is going on?